home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
ppdial31.zip
/
README.CMD
< prev
Wrap
OS/2 REXX Batch file
|
1996-12-31
|
1KB
|
31 lines
/* REXX */
address cmd
if RxFuncQuery('SysCreateObject')
then call RxFuncAdd 'SysCreateObject', 'RexxUtil', 'SysCreateObject'
if RxFuncQuery('SysOpenObject')
then call RxFuncAdd 'SysOpenObject', 'RexxUtil', 'SysOpenObject'
/* Try to open the URL object... */
rc = SysOpenObject( '<DNR_PPPDIAL_URL_FILE>', 'DEFAULT', 1 )
if rc = 1 then exit
url1 = 'file:///'directory()'\pppdial.htm'
url2 = 'http://www.cam.org/%7etomlins/pppdial.html'
/* Try to create a URL WPS object... */
/* if successful, open it. */
/* if not successful, start up web explorer instead. */
rc = SysCreateObject( 'WPUrl', 'PPPDIAL Documentation (local)', '<URLF_REF>', 'OBJECTID=<DNR_PPPDIAL_URL_FILE>;URL='url1';', 'replace' )
if rc = 0 then do
'START EXPLORE.EXE pppdial.htm -q -t 8'
end /* do */
else do
/* The object was created... open it... */
rc = SysCreateObject( 'WPUrl', 'PPPDIAL Documentation (on-line)', '<URLF_REF>', 'OBJECTID=<DNR_PPPDIAL_URL_ONLINE>;URL='url2';', 'replace' )
rc = SysOpenObject( '<DNR_PPPDIAL_URL_FILE>', 'DEFAULT', 1 )
say 'URL Objects were created in connections\web sites\reference'
'@pause'
end /* do */