Answer» How would I do this:
If the current day is FRIDAY run this command:
if exist C:\temp\current rmdir /S/Q c:\temp\archive
I would like to ADD this to another batch file that runs everyday so that I dont have to schedule another task just for this.
Thank YOUIT's difficult to say without knowing your OS. This may work on your machine:
Code: [Select]for /f %%i in ('date /t') do ( if %%i==Fri if exist c:\temp\current\nul rd /s /q c:\temp\archive )
Good luck. 8-)
|