1@echo off
2rem RCS: @(#) $Id: rmd.bat,v 1.5 2001/11/13 02:46:23 davygrvy Exp $
3
4if not exist %1\nul goto end
5
6echo Removing directory %1
7
8if "%OS%" == "Windows_NT" goto winnt
9
10deltree /y %1
11if errorlevel 1 goto end
12goto success
13
14:winnt
15rmdir /s /q %1
16if errorlevel 1 goto end
17
18:success
19echo Deleted directory %1
20
21:end
22
23