home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
ds_skins.zip
/
UnInstal.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-10-21
|
2KB
|
64 lines
/* Remove Data Shield */
/* Run this script from an OS/2 command line session */
/* */
/* DO NOT USE THIS SCRIPT if you have installed this */
/* program into a directory that contains any other */
/* applications. */
/* */
/* This script will delete EVERYTHING in the programs */
/* Install directory and attempt to remove the directory */
/* also. It will also attempt to delete subdirectories */
/* and files that may have been created under this one. */
/* */
/* BE SURE YOU WANT TO DO THIS BEFORE PROCEEDING! */
/* */
crlf = '0d0a'x
LinesToDo = 21
if left(SourceLine(15),7) <> '/* ALSO' then LinesToDo = 14
do index = 1 to LinesToDo
say SourceLine(index)
end
say crlf||'Press [Y] to remove' strip(substr(SourceLine(1),11,47),'T') 'from your system'||crlf
say '[Enter] to quit'
pull approval
if approval <> 'Y' then exit
say crlf||'Removing all files...'
if RxFuncQuery('SysLoadFuncs') then do
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
end
/* Program files */
Call sysfiletree 'H:\Prog\Psoft\Util\DShield\*.*','List','S','****','----'
rc = sysfiletree('H:\Prog\Psoft\Util\DShield\','List','FSO')
if List.0 > 0 then do
do index = 1 to List.0
rc = SysFileDelete(List.index)
say 'Deleting '||List.index
end
end
/* Directories */
rc = sysfiletree('H:\Prog\Psoft\Util\DShield\','List','DSO')
if List.0 > 0 then do
do index = List.0 to 1 by -1
rc = SysRmDir(List.index)
say 'Removing '||List.index
end
end
/* Other work */
call SysDestroyObject '<DATASHIELD>'
cd ..
say 'Removing Data Shield directory'
rc = SysRmDir('H:\Prog\Psoft\Util\DShield')
say crlf||'Done!'||crlf