diff options
Diffstat (limited to 'win/rmd.bat')
-rw-r--r-- | win/rmd.bat | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/win/rmd.bat b/win/rmd.bat index f1fa10c..c4d154f 100644 --- a/win/rmd.bat +++ b/win/rmd.bat @@ -1,27 +1,21 @@ @echo off -rem RCS: @(#) $Id: rmd.bat,v 1.7 2001/09/08 23:52:02 davygrvy Exp $ +rem RCS: @(#) $Id: rmd.bat,v 1.8 2001/11/10 10:38:47 davygrvy Exp $ -if not exist %1\. goto end +if not exist %1\nul goto end echo Removing directory %1 if "%OS%" == "Windows_NT" goto winnt -cd %1 -if errorlevel 1 goto end -del *.* -cd .. -rmdir %1 +deltree /y %1 if errorlevel 1 goto end goto success :winnt -rmdir %1 /s /q +rmdir /s /q %1 if errorlevel 1 goto end :success -echo deleted directory %1 +echo Deleted directory %1 :end - - |