I want to rename file name like "how-to-rename-file.jpg" to "how-to-reuse-file.jpg" by using a Windows batch file
I.e. I only want to replace one or two words in a file name.
I want to rename file name like "how-to-rename-file.jpg" to "how-to-reuse-file.jpg" by using a Windows batch file
I.e. I only want to replace one or two words in a file name.
The code above doesn't rename the files - The paths are an issue and the source filename is incorrect.
This will work on files in the current folder - except those with ! in the names will be a problem.
I give you other example for a loop of files:
I've missed some things in the syntax 'cause fast-typing my last edit, here is the corrected code:
PS: You can read here to learn more about substring: http://ss64.com/nt/syntax-substring.html http://ss64.com/nt/syntax-replace.html