Hi,
I need to rename a lot of files and need to do it in a batch file.
The file names differ and I need to "pad" the files with a 0 in front of the file names.
-------------------------------------------------------------------------
I don't know the First thing about scripts :confused:
I'm already using a batch file to copy files then i need to add a 0 in front. that is all I want to do.
Batch File:
XCOPY Z:\*.* D:\CClas\CCLASFML\Reports\Certificate /D:01-26-2010 /C
XCOPY Y:\*.* D:\CClas\CCLASFML\Reports\STT /D:01-26-2010 /C
-------------------------------------------------------------------------
The process must be automated, and the server does'nt have Powershell :(
This is what i'm looking for:
for %i in (*.*) do ren %i 0%i
but when i use it dos tells me :
i was unexpected at this time.
-------------------------------------------------------------------------
Got It!
The Correct Code is:
for %%N in (*.*) do ren "%%N" "0%%N"
Thanks EveryOne