home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 17
/
amigaformatcd17.iso
/
-in_the_mag-
/
emulation
/
flex
/
unpush.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1997-07-01
|
1KB
|
51 lines
/* unpush.rexx */
arg fname drivename;
if fname = "" then do
say "No filename! Command syntax is: unp filename drivename"
exit 0
end
if drivename = "" then do
say "No drivename! Command syntax is: unp filename drivename"
exit 0
end
/*
* open rexxsupport.library -- may be needed for some functions
*/
if ~show('L',"rexxsupport.library") then do
if addlib('rexxsupport.library',0,-30,0) then do
/* everything's ok */
end;
else do
say 'We Have A Library Problem, Unable To Load "rexxsupport.library"';
say 'Cannot operate RESOLVER.rexx without this library - sorry!';
exit 10;
end;
end;
if ~open(whandle,"ram:ww",'write') then do
say cannot open write file!
exit 0
end
if open(fhandle,fname,'read') then do /* open the file */
going = 1
do while going = 1
entry = readln(fhandle);
if entry ~= "" then do
bbyte = "xx";
do while bbyte ~= ""
parse var entry bbyte entry
if bbyte ~= "" then do
call writech(whandle,d2c(x2d(bbyte)));
end
end
end
else going = 0;
end
call close(fhandle);
end
call close(whandle);
address command "inject ww" drivename fname;