Monday, March 9, 2015

Batch script to rename portionof a filename

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?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...