|I'm trying to write a script that renames a file if there's another filename with a different extension that shares the same prefix.|
For example, if the file in question is named "01.png", it looks to see if there are any other files that begin with "01" with extension txt. If there exists "01.my photo.txt", rename "01.png" to "01.my photo.png"
So basically to look for txt file matches, I'd run the batch like so: renamesimilar.bat 01.png txt
I realize there may be problems when there are more than 1 match, so for now I'd like it to just go with the first match.