Jump to content

Recommended Posts

Posted

hi there peeps, i have a little problem with this bit of code

@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


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...