Skip to content
Tcl Source Code Artifact [8340fc8b59]
Login

Artifact [8340fc8b59]

Artifact 8340fc8b594c15080d09df84d2234f71ea94c373:


@echo off
rem RCS: @(#) $Id: rmd.bat,v 1.8 2001/11/10 10:38:47 davygrvy 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