home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
e52os2m.exe
/
nfdeldir.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-05-27
|
640b
|
38 lines
@echo off
REM nfdeldir d: \netfin c:
REM nfdeldir <netfin drive> <netfin dir> <boot drive>
IF "%1" == "" GOTO ERROR_ARG
IF "%2" == "" GOTO ERROR_ARG
IF "%3" == "" GOTO ERROR_ARG
%3\nfunicfg.exe
del %3\nfunicfg.exe
REM Change to NetFinity directory
%1
IF ERRORLEVEL 1 GOTO ERROR_ARG
IF NOT EXIST %2 GOTO ERROR_ARG
cd %2
IF ERRORLEVEL 1 GOTO ERROR_ARG
IF EXIST * del /N *
cd ..
rd %2
IF ERRORLEVEL 1 GOTO ERROR_NF
del %3\nfdeldir.cmd
GOTO END
:ERROR_ARG
echo Invalid arguments to command file
cd \
GOTO VERY_END
:ERROR_NF
echo Invalid NetFinity directory structure
GOTO END
:END
%1
cd \
:VERY_END