Batch script to rename portionof a filename
- by Rubik'sCube
I've been trying to make a script that will a file name and change only one word in it.
An example would be:
projectname.vcproj.domainname.username.user
to
projectname.vcproj.otherdomainname.username.user
I've tried using the if loop to list the directory and set the delimiter to a period but it doesn't seem to be able to identify and change it. I'm using examples of renaming .txt files but it doesn't seem to work, any suggestions?