home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
mpbeta-2.zip
/
insobj.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-07-12
|
1KB
|
35 lines
/***************************************************/
/* Create MaxFile/PM program object on the Desktop */
/***************************************************/
'@echo off'
Say "MaxFile/PM WPS Object Installation Aid."
Say 'Copyright 1994 Craig Morrison, All Rights Reserved.'
Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
Call SysLoadFuncs
iDir = Directory()
Say
Say 'This file will create an object on your desktop for MaxFile/PM.'
Say 'Is MaxFile/PM in the directory: 'iDir' (Y or N)?'
Pull YesNo .
If YesNo \= 'Y' then Exit
Say
Say 'Creating MaxFile/PM Desktop program object.'
rc = SysCreateObject("WPProgram", "MaxFile/PM", "<WP_DESKTOP>",,
"EXENAME="||iDir||"\MAXFMPM.EXE;STARTUPDIR="||iDir )
Say
If rc then Say 'MaxFile/PM object creation successful!'
Else Say 'Error creating MaxFile/PM object!'
Say
Say 'Creating MaxFile/PM Online Reference object.'
rc = SysCreateObject("WPProgram", "MaxFile/PM Online Reference",,
"<WP_DESKTOP>",,
"EXENAME=VIEW.EXE;PARAMETERS=MAXFMPM.INF;STARTUPDIR="||iDir )
Say
If rc then Say 'MaxFile/PM Online Reference object creation successful!'
Else Say 'Error creating MaxFile/PM object!'