Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
348 B

  1. @echo off
  2. echotime /t | sed s/" ".*//g | sed s/^/"set today="/g > today.bat
  3. call today.bat
  4. del today.bat
  5. if "%today%" == "" goto failure
  6. goto docopy
  7. :docopy
  8. deltree /Y f:\%today%
  9. xcopy /e /i /h /r /k d:\ f:\%today%
  10. goto exit
  11. :failure
  12. echo The command on line 4 has failed. Please retry.
  13. :exit