home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1992
/
14
/
pdwrap.bat
< prev
next >
Wrap
DOS Batch File
|
1992-01-16
|
549b
|
21 lines
@ECHO OFF
IF '%1'=='' GOTO Syntax
SET theDir=%1
FOR %%v IN (/%theDir%) DO SET theDir=%%v
FOR %%v IN (/%theDir%) DO SET theDir=%%v
FOR %%v IN (/%theDir%) DO SET theDir=%%v
IF '%theDir%'=='.' GOTO BadChoice
IF '%theDir%'=='\' GOTO BadChoice
IF NOT EXIST %1\NUL GOTO NoDirectory
PD %1
:BadChoice
ECHO You must not attempt to prune the current
ECHO directory, its parent, or any root directory!
GOTO End
:NoDirectory
ECHO Directory "%1" does not exist
GOTO End
:Syntax
ECHO SYNTAX : PDWRRAP [[drive:\]path\]dirname
:End
SET theDir=