home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
wps
/
progs
/
calc
/
katcalc
/
install.cmd
next >
Wrap
OS/2 REXX Batch file
|
1990-05-13
|
698b
|
30 lines
/*
** INSTALL.CMD
**
** REXX installation program. The default subdirectory to install into is
** c:\calc
**
** If that's not suitable change all occurrances of c:\calc to what you
** would like it to be.
*/
OS2:
address CMD "MD c:\calc"
address CMD "XCOPY *.* c:\calc"
address CMD "c:"
address CMD "cd calc"
address CMD "FOR %%n IN (k*.pgm) DO echo %%n >> kfiles.lst"
Begin:
filename = "kfiles.lst"
do until lines( filename) = 0
name = linein( filename)
fn = substr( name, 1, 8)
ea = fn
cmdstr = "EAUTIL "fn".PGM "ea".EA /J"
address CMD cmdstr
end
address CMD "del *.ea"
address CMD "del kfiles.lst"
exit