copy file & rename

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: copy file & rename

#16 Post by foxidrive » 12 Apr 2012 11:53

Download byte5.exe and this should work to change all the files.

Test it on a sample set of files.

http://astronomy.comoj.com/byte5.exe

Code: Select all

@echo off
for /f "delims=" %%a in ('dir *.mdl /b /s') do (
echo "%%a"
byte5 "%%a"
move "%%a.tmp" "%%a" >nul
)


FWIW I wrote the tool in PureBasic so it's not a random exe file of unknown origin.

Post Reply