Using DOS to Rename a folder in W7


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

Posted by William Lockie on June 26, 2010 at 15:22:14:

The following batch file I am developing to rename a W7 folder.I have included some dirs and pauses to help me troubleshoot.( they will be removed when the troubleshooting is finished ) It appears that the line beginning with "move" is the one that results in a failure of the batch file. It gives me a syntax error.

cd /D D:\
dir
pause
if exist WindowsImageBackup dir
move /Y D:\WindowsImageBackup D:\"%date:/=.%" W7
dir
pause

I have checked and checked again the correct Name of the folder, WindowsImageBackup>


Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]