Re: Renaming files across multiple directories

Re: Renaming files across multiple directories

am 24.10.2005 07:29:25 von baygross

put this in a batch file... eg: myfile.bat
and run it from your main directory
***************************************************
setlocal enabledelayedexpansion
set num=1
for /f "tokens=*" %%a in ('dir /s /b *.txt') do (
copy "%%a" "c:\renoutput\output!num!.txt"
set /a num+=1
)
******************************
untested, but should do what you want in XP
-BG