home *** CD-ROM | disk | FTP | other *** search
- /* rexx program to make an object on the desktop */
-
- Parse Arg Data
-
- /* first argument is the CD drive */
- cddr=Word(Data,1)
-
- /* second argument is the destination file name */
- destfile=Word(Data,2)
-
- /* arguments 3 through 7 are the options */
- opt1=Word(Data,3)
- opt2=Word(Data,4)
- opt3=Word(Data,5)
- opt4=Word(Data,6)
- opt5=Word(Data,7)
-
- /* if any of these are still the defaults, blank them out */
-
- if opt1="d" then
- opt1=" "
- if opt2="d" then
- opt2=" "
- if opt3="d" then
- opt3=" "
- if opt4="d" then
- opt4=" "
- if opt5="d" then
- opt5=" "
-
- optlist=opt1" "opt2" "opt3" "opt4" "opt5
- /* check to see if Sys REXX functions
- available. If not, make it available. */
-
- result=RxFuncQuery(SysCreateObject)
- if result=1 then
- do
- call RxFuncAdd 'SysCreateObject','RexxUtil','SysCreateObject'
- end
-
- /* complete path of destination and options */
- auddd=cddr'\LLHOME\AUDIODD\'destfile' 'optlist
-
- /* name of icon file on CD */
- iconfile=cddr'\cset.ico'
-
- /* name of start command file on CD */
- startcom=cddr'\start.bat'
-
- /* device driver file on hard disk */
-
-
- /* create object to start Experience C++ on desktop */
-
- title='Experience C++'
- classname='WPProgram'
- location='<WP_DESKTOP>'
- setup='OBJECTID=<EXPER_WIN>;'||,
- 'ICONFILE='iconfile';'||,
- 'PROGTYPE=VDM;'||,
- 'EXENAME='startcom';'||,
- 'SET INT_DURING_IO=1;'||,
- 'SET DOS_DEVICE='auddd';'
- call BldObj
-
- /* all done */
- Exit
-
-
-
- /* BldObj */
- BldObj:
-
- result=SysCreateObject(classname,title,location,setup,'R')
- Return
-