home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 14 Text / 14-Text.zip / bobsapps.zip / blinknfo.cmd < prev    next >
OS/2 REXX Batch file  |  2000-02-23  |  1KB  |  24 lines

  1. @REM BLINKNFO.CMD This file is designed to be the receiver of a call from a program, which passes a URL as a 
  2. @REM parameter. All programs involved must be in the same directory or in the path.
  3. @REM By having all the logic here the user has a lot of flexibility. Two initial functions are provided...
  4. @REM 1. URL creation. This writes a URL to a file, a messy intermediate step to get around my inability to parse '//' 
  5. @REM correctly when passed to a REXX command. It then calls a REXX program which finds out where to create a WpURL
  6. @REM object and then creates it with the URL parameter.
  7. @REM 2. Connect to Netscape. A direct call to Netscape with the URL parameter.
  8. @REM Maybe somebody will write a command to add URL's to Netscape bookmarks, which can be run from here, ...
  9. @REM or a command using the Netscape DDE interface.
  10. @REM You could use both functions but often one will be 'remmed' out. You can change the name of the URL file.
  11. @REM Parameters passed ...
  12. @REM %1 A URL 
  13. @REM Version 1.0 29-09-1999 Bob McLellan Created
  14.  
  15. @REM Create a file (called theurl) containing the URL and call MAKEURL.CMD
  16. @REM @echo %1> theurl
  17. @echo %1
  18. @REM @makeurl theurl
  19. @rem @del theurl
  20.  
  21. @REM Call Netscape with the URL, Note: Netscape seems to open a new window with each call.
  22. @netscape %1
  23.  
  24. exit