Thread: Mass renaming
View Single Post
  #9 (permalink)  
Old 07-08-2007, 08:26 AM
Ayush
 
Posts: n/a
Re: Mass renaming

[Kieron Capehorn] wrote-:
> Is there a method of renaming all the files in a folder systematically? I
> have a folder full of files that begin with numbers. I want to add a 0 to
> the beginning of each filename (i.e. 1.xls will become 01.xls). I have
> tried putting the command 'rename *.* 0*.*' into command, but that replaced
> the first letter of each filename with a 0, rather than adding a 0.


> This there an easy way to do this?


> Thanks.



Open Command Prompt and run:
CD "FOLDER PATH"
for /f %f in ('dir /b /a-d') do @ren "%f" "0%f"


Good Luck, Ayush.
--
XP-Tips [Speed up menu display] :
http://www.microsoft.com/windowsxp/u...tips/menu.mspx
Reply With Quote