12 Aug 2012 21:53
Renaming a folder
I would like to rename a folder. But first I want to make sure the folder name I am using does not exist. This is what I have: Set i=1 :again If exists C:\WINDOWS\SoftwareDistribution.old_%i% set /A i+=1 goto again Set x=i Set /A x+=1 ren C:\WINDOWS\SoftwareDistribution SoftwareDistribution.old_%x% It isn't working. How can I fix it? Thanks, Gary ------------------------------------ To Post a message, send it to: batchworld@... To Unsubscribe, send a blank message to: batchworld-unsubscribe@...! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/batchworld/ <*> Your email settings: Individual Email | Traditional(Continue reading)
RSS Feed