Rename only first 2 characters
Moderator: DosItHelp
Rename only first 2 characters
I need to rename only the first 2 characters of a filename. What command would I use without using powershell/python/etc... Hopefully just use the REN command.
Re: Rename only first 2 characters
To set the first two characters of all files in the current directory to XX:
See How does the Windows RENAME command interpret wildcards? over at StackExchange SuperUser for an explanation as to why this works.
Dave Benham
Code: Select all
ren *.* XX*
Dave Benham