home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: InfoMgt
/
InfoMgt.zip
/
tafeld08.zip
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-03-04
|
956b
|
40 lines
/* Install TafelEd/2 */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs';
Call SysloadFuncs;
/* Query for installation path */
curdir = directory();
Say 'Enter the directory you which to install TafelEd/2 into (C:\TafelEd)';
Pull instdir;
newdir = directory(instdir);
if newdir <> instdir Then Do
rc = SysMkDir(instdir);
If rc > 0 Then Do
Say 'Couldnt create the selected directory - 'instdir;
Exit;
End;
End;
newdir = directory(instdir);
/* Copy the files to this directory */
Say 'Copying the files';
'@COPY 'curdir'\*.*'
/* Create an object on the Desktop */
say 'Creating TafelEd/2 program object';
title = 'TafelEd/2';
classname = 'WPProgram';
location = '<WP_DESKTOP>';
setup = 'EXENAME='instdir'\TAFELED.EXE;STARTUPDIR='instdir';ASSOCFILTER=*.TT';
call SysCreateObject classname,title,location,setup,u;
/* Completed */
newdir = directory(curdir);
say 'Done';