Source code of Windows XP (NT5)
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
373 B

  1. @echo off
  2. setlocal enableextensions
  3. set ROOTDIR=%1
  4. if '%ROOTDIR%' == '' goto Usage
  5. if exist %ROOTDIR%\Bin rmdir /s /q %ROOTDIR%\Bin
  6. if exist %ROOTDIR%\Dev rmdir /s /q %ROOTDIR%\Dev
  7. if exist %ROOTDIR%\Lib rmdir /s /q %ROOTDIR%\Lib
  8. if exist %ROOTDIR%\Temp rmdir /s /q %ROOTDIR%\Temp
  9. del /q %ROOTDIR%\*.*
  10. goto End
  11. :Usage
  12. echo Usage: DeleteFiles.cmd RootDir
  13. :End
  14. endlocal