home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
sstart10.zip
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-04-20
|
1KB
|
46 lines
/* Load REXXUTIL */
'@echo off'
call rxfuncadd sysloadfuncs, rexxutil, sysloadfuncs
call sysloadfuncs
Say ' Please type the full pathname where you want Session Starter installed,'
Say ' including the drive.';say '';say ' Example: d:\sstart'
pull pathname
if pathname='' then do
say "You didn't specify a path."
exit
end
call SysFileTree ''pathname'', 'file', 'd'
if file.0=0 then do
say '';say ' The specified path does not exist. Please create it '
say ' and copy (or unzip) the Session Starter files to it. Then run the'
say ' installation program.'
exit
end
Say ' Now creating Desktop object...'
classname='WPProgram'
title='Session Starter'
location='<WP_DESKTOP>'
setup='MINIMIZED=YES;PROGTYPE=PM;EXENAME='pathname'\session.exe;OBJECTID=<WP_DESKTOP_sstart>;ICONFILE='pathname'\session.ICO;STARTUPDIR='pathname';'
BldObj:
result = SysCreateObject(classname, title, location, setup)
If result=1 Then do
call SysCls
say '';say ' Object created!'
Exit
end
Else do
SysCls
say '';say ' Not created! Return code='result
exit
end