[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') do @ren "%f" "0%f"
Good Luck,
Ayush.
--
XP-Tips [Schedule a weekly defragmentation] :
http://www.microsoft.com/windowsxp/u...ps/defrag.mspx