home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
con2v766.zip
/
cn2_76_6.zip
/
util
/
unzip_.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-08-08
|
911b
|
49 lines
/* CONNECT's wrapper for InfoZip's ZIP */
/* input: "unzip_.cmd -b $SWAPDIR -g -D -S $ARC $SRC"
* "unzip_.cmd -b n:\temp -g -D -S n:\suxx.zip @@selected.lst"
* "unzip_.cmd -b n:\temp -g -D -S n:\suxx.zip filename.txt"
*/
call RxFuncAdd 'SysLoadFuncs', 'rexxutil', 'SysLoadFuncs'
call SysLoadFuncs
parse arg args
if pos( '@@', args ) > 0 then do
parse arg args' @@'list
lst = ''
call stream list, 'c', 'open read'
do while stream( list, 's' ) = 'READY'
s = linein( list )
lst = lst || ' ' || s
if length( lst ) > 512 then do
'unzip.exe ' || args || ' ' || lst
lst = ''
end
end
call stream list, 'c', 'close'
if length( lst ) > 0 then
'unzip.exe ' || args || ' ' || lst
end
else do
parse arg args
'unzip.exe ' || args
end
exit 0