diff options
author | davygrvy <davygrvy@pobox.com> | 2001-09-08 23:52:02 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@pobox.com> | 2001-09-08 23:52:02 (GMT) |
commit | aefa6fb76280dbf4f20b6e701ae3bc49cd52c390 (patch) | |
tree | 5e2c73e9ab15780feb94ec0fea12ea72b1da18b9 /win/rmd.bat | |
parent | 87067571d2361e18c7ba3dcd929d22189d1e9acf (diff) | |
download | tcl-aefa6fb76280dbf4f20b6e701ae3bc49cd52c390.zip tcl-aefa6fb76280dbf4f20b6e701ae3bc49cd52c390.tar.gz tcl-aefa6fb76280dbf4f20b6e701ae3bc49cd52c390.tar.bz2 |
* win/mkd.bat:
* win/rmd.bat: made these text files, text files again.
[Patch: 451333]
Diffstat (limited to 'win/rmd.bat')
-rw-r--r-- | win/rmd.bat | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/win/rmd.bat b/win/rmd.bat index 38b9268..f1fa10c 100644 --- a/win/rmd.bat +++ b/win/rmd.bat @@ -1,26 +1,27 @@ -@echo off
-rem RCS: @(#) $Id: rmd.bat,v 1.6 2001/09/08 22:30:15 mdejong Exp $
-
-if not exist %1\. goto end
-
-echo Removing directory %1
-
-if "%OS%" == "Windows_NT" goto winnt
-
-cd %1
-if errorlevel 1 goto end
-del *.*
-cd ..
-rmdir %1
-if errorlevel 1 goto end
-goto success
-
-:winnt
-rmdir %1 /s /q
-if errorlevel 1 goto end
-
-:success
-echo deleted directory %1
-
-:end
-
+@echo off +rem RCS: @(#) $Id: rmd.bat,v 1.7 2001/09/08 23:52:02 davygrvy Exp $ + +if not exist %1\. goto end + +echo Removing directory %1 + +if "%OS%" == "Windows_NT" goto winnt + +cd %1 +if errorlevel 1 goto end +del *.* +cd .. +rmdir %1 +if errorlevel 1 goto end +goto success + +:winnt +rmdir %1 /s /q +if errorlevel 1 goto end + +:success +echo deleted directory %1 + +:end + + |