summaryrefslogtreecommitdiffstats
path: root/win/rmd.bat
blob: b0179d1b202369d3d92df86e9ed867b69f947ee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
rem RCS: @(#) $Id: rmd.bat,v 1.4.2.1 2002/06/10 05:38:27 wolfsuit Exp $

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