Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
2.10/5 (3 votes)
See more:
Hi guys,

I have a question. how if i want to change file names in a folder.
Let the say the filename is xxxyyyzzz.txt, i need to change it to xxxzzz.txt.
how can i do this in batch mode?

Thanks,
skunkhead :)
Posted
Comments
G4mm4R4y 31-Jul-13 14:00pm    
A little late to say this, but next time be more clear, the windows dos scripting language is often called "Batch" and this is a coding site so I was thinking you meant that. Please be more clear.

Hope this[^] might help you.
 
Share this answer
 
Hello! 2 ways to do this.
if it is in the same directory (eg. C:\folder )
just say:
rename FILE.EXTENSION NEWNAME.EXTENSION
If it is a different directory i believe it is:
rename C:\DIRECTORY NEWNAME.EXTENSION
Hope this helps!
_______________________________________________________________________________________
Remember "help"!
 
Share this answer
 
Comments
G4mm4R4y 16-Jul-13 13:48pm    
Why is this downvoted this is the exact command to do it? Am I getting something wrong?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900