MSFN Forum: [CMD] Renaming multiple - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[CMD] Renaming multiple Rate Topic: -----

#1 User is offline   devil270975 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 368
  • Joined: 31-July 03

Posted 01 November 2003 - 08:07 AM

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


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy