diff options
Diffstat (limited to 'tk8.6/win/rmd.bat')
-rw-r--r-- | tk8.6/win/rmd.bat | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tk8.6/win/rmd.bat b/tk8.6/win/rmd.bat new file mode 100644 index 0000000..820b76f --- /dev/null +++ b/tk8.6/win/rmd.bat @@ -0,0 +1,20 @@ +@echo off
+
+if not exist %1\nul goto end
+
+echo Removing directory %1
+
+if "%OS%" == "Windows_NT" goto winnt
+
+deltree /y %1
+if errorlevel 1 goto end
+goto success
+
+:winnt
+rmdir /s /q %1
+if errorlevel 1 goto end
+
+:success
+echo Deleted directory %1
+
+:end
|