1.

Solve : Renaming MS Word Documents thru batch files..?

Answer»

Can somebody write a batch file to rename MS Word documents. SAY my files are NAMED as 543MTS.doc, 544MTS.doc, etc (nearly 100 word files). I want to rename all my files to 543MTS19012007, 544MTS19012007. I hav nearly 100 documents in a folder like this...Can a batch file be created to rename all my files or can somebody create a batch file to rename all my files...And the important thing is I am not a programmer, let ur ans. be BRIEF.....This question seems strangely familiar. Oh well, onward and upward.

Code: [Select]set today=%date:~10,4%%date:~4,2%%date:~7,2%
for /f "tokens=* delims=" %%i in ('dir /b ???MTS.doc') do (
echo "%%i" "%%i%today%"
)

This snippet will simply list the changes to be made. One your satisfied, replace echo with ren.

Note: you MAY have to change the today variable to your localized date format.

Good LUCK. 8-)



Discussion

No Comment Found