Articles

Solved Rename Multiple Files using DOS Batch Programming

February 5, 2013 at 02:34:41
Specs: Windosxp

i m having folder test. inside file called 20130204.csv and i want to rename it like 0416_20130204_1.csv. 0416 and _1 are static.

Thanks


See More: Rename Multiple Files using DOS Batch Programming

Report •


#1
February 5, 2013 at 03:26:47
✔ Best Answer

@echo off
pushd test
for %%i in (*.csv) do ren %%i 0416_%%~ni_1.tmp
ren *.tmp *.csv
popd

Report •
Related Solutions


Ask Question