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.

17 lines
400 B

  1. @echo off
  2. set _NTFIX=%_NTDRIVE%\NTFIX
  3. for %%. in (_NTTREE _NTPOSTBLD TEMP _NTFIX) do @CALL :CLE@N_P %%.
  4. set _NTFIX=
  5. goto :EOF
  6. :CLE@N_P
  7. SETLOCAL ENABLEDELAYEDEXPANSION
  8. set _=%1
  9. set __=%_: =%
  10. set ___=!%__%!
  11. for /F %%. in ('echo %___%') do set _=%%.
  12. if EXIST %_% move %_% %_%.OLD & start /min "CLEANUP %%%__%%%" cmd /c rd /s/q %_%.OLD
  13. md %_%
  14. set _=
  15. set __=
  16. set ___=
  17. ENDLOCAL
  18. goto :EOF