home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
wwwos2.zip
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-07-31
|
2KB
|
61 lines
/* To create a WebWilly for OS/2 icon on the Desktop */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
signal on syntax name NoREXX
call SysLoadFuncs
signal off syntax
signal on halt
'@echo off'
parse source temp
parse var temp . . temp
temp=reverse(temp)
parse var temp . "\" temp
source=reverse(temp)
say ""
say "May we create a WebWilly program object on your Desktop?"
say "(Press Y or N.)"
say ""
do until answer="Y" | answer="N"
answer=translate(SysGetKey())
end
say ""
if answer="Y" then do
class='WPProgram'
title='WebWilly Watch'
loc='<WP_DESKTOP>'
strings='ObjectID=<WebWilly>;'
strings=strings||'ExeName='source'\WEBWILLY.EXE;'
if length(source)>2 then strings=strings||'StartUpDir='source';'
else strings=strings||'StartUpDir='source'\;'
call SysCreateObject class,title,loc,strings,'U'
if length(source)=2 then source=source"\"
say ""
say "Installation complete. Doubleclick on the new Desktop object or type"
say "WEBWILLY, while in the" source "directory, to start"
say "WebWilly Watch."
say ""
end
else do
if length(source)=2 then source=source"\"
say ""
say "Then just type WEBWILLY, while in the" source "directory,"
say "whenever you want to start WebWilly Watch."
say ""
end
exit
Halt:
say ''
say 'INSTALL.CMD interrupted by Ctrl-C.'
say ''
exit
NoREXX:
say ''
say 'Unable to load the REXXUtil functions. Either the REXXUTIL.DLL file is not'
say 'on the LIBPATH or REXX support is not installed on this system.'
say ''
exit