|
Answer» yea i am logged in with enough PERMISSIONS, but if %date% is a system variable then how does FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set date=%%a %%b) format it from Wed 03/16/2011 to 03 16 ?Is this folder "C:\testing\%yesterday%" actually empty?
My remark about using a variable NAMED %date% was intended as a GENERAL observation, it clearly doesn't matter in this case, but it is generally safer not to overwrite system variables.
ah ok, and no it has FILES in it, and they all need to be deleted
|