home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 14 Text
/
14-Text.zip
/
bobsapps.zip
/
blinknfo.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-02-23
|
1KB
|
24 lines
@REM BLINKNFO.CMD This file is designed to be the receiver of a call from a program, which passes a URL as a
@REM parameter. All programs involved must be in the same directory or in the path.
@REM By having all the logic here the user has a lot of flexibility. Two initial functions are provided...
@REM 1. URL creation. This writes a URL to a file, a messy intermediate step to get around my inability to parse '//'
@REM correctly when passed to a REXX command. It then calls a REXX program which finds out where to create a WpURL
@REM object and then creates it with the URL parameter.
@REM 2. Connect to Netscape. A direct call to Netscape with the URL parameter.
@REM Maybe somebody will write a command to add URL's to Netscape bookmarks, which can be run from here, ...
@REM or a command using the Netscape DDE interface.
@REM You could use both functions but often one will be 'remmed' out. You can change the name of the URL file.
@REM Parameters passed ...
@REM %1 A URL
@REM Version 1.0 29-09-1999 Bob McLellan Created
@REM Create a file (called theurl) containing the URL and call MAKEURL.CMD
@REM @echo %1> theurl
@echo %1
@REM @makeurl theurl
@rem @del theurl
@REM Call Netscape with the URL, Note: Netscape seems to open a new window with each call.
@netscape %1
exit