@echo off
for /f "tokens=2 delims=-" %%i in ('dir /b *.exe') do (if not exist %%i.exe rename windows* %%i.exe)
exit
basically what i am trying to do is rename a bunch of hotfixes to there number ie kb123456 or q123456, but when i execute the script it renames the files but i get a message on every loop saying a duplicate file or file not found, what is going on or is this normal?
any help would be much appreciated
Lee



Help

Back to top








