🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.misc
Article #16889

Re: Netscape + helpers + .cmd

#16889
From: danielh
Date: Tue, 20 Apr 1999 00:00
47 lines
3013 bytes
>I wrote a little REXX script so I can access 'Shout Servers' so I can
>listen to streaming MP3 content.
........
>Using Netscape 4.4, I setup the mime setting and pointed netscape to use
>the helper file 'shout.cmd' whch I wrote, as above. I'm using mp123.exe
>to play the streaming MP3 content. The problem is that Netscape does not
>actually launch the helper program 'shout.cmd' but instead of sending it
>to the command processor [cmd.exe or 4os2.exe] for execution, it hands it
>to the operating system which in turn launches e.exe and then I get the
>chance the edit 'shout.cmd'. This I don't want. I have placed the line
>'4os2.exe shout.cmd' in the helper/application line and this works OK but
>again, not really what I want although is does accomplish the task. The
>other thing I did was to convert my 'shout.cmd' file to a .exe via
>RexxToExe and this too works. Again not really what I want.
>How can I get Netscape to simply execute a .cmd file when used as a
>helper?

It's Easy...

   a) preferences-applications-
   b) assuming you are modifying an existing application, highlight it in the applications list and
       hit the edit button (if it's a new entry, click on New Type)
  c) click oh the application radio button,

  d) (this is the part you probably don't already know....)
      fill in the field with
            cmd.exe  /c  "x:\dir\shout.cmd  arglist "
       where:
            x:\dir\shout is the fully qualified name of your rexx .cmd program
            arglist is an optional argument list to be read by "shout.cmd".  
           and the quotes (") are NOT optional -- make sure you type them in!
     
    Note that  that netscape will save the response to a temporary file, and 
    append it's name of a temporary file to this "x:\dir... arglist " string.  
    Thus,  if arglist is a single word (say, a 0 or a 1), then SHOUT.CMD should contain:
         parse arg  arglist infile
    Using this, infile would contain the name of the temporary file into which netscape 
    stored the response from the server. 

    Of course, if you did not include arglist (say, used "x:\dir\shout.cmd " ), then 
    you would use:  
          parse arg infile 
    

-----------------------------------------------------------
danielh@crosslink.net
-----------------------------------------------------------
Technical Details
Message-ID: <371cf7fd$1$qnavryu$mr2ice@news.crosslink.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <c1.2c.2QRmCZ$00s@transit.omen.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1044c2,c5966f70023210f
X-Google-Attributes: gid1044c2,public
X-Google-Thread: 10a752,c5966f70023210f
X-Google-Attributes: gid10a752,public
X-Google-Thread: 112d6c,c5966f70023210f
X-Google-Attributes: gid112d6c,public
From: danielh@crosslink.net
Subject: Re: Netscape + helpers + .cmd
Date: 1999/04/20
Message-ID: <371cf7fd$1$qnavryu$mr2ice@news.crosslink.net>
X-Deja-AN: 468889751
References: <c1.2c.2QRmCZ$00s@transit.omen.com.au>
X-Trace: mojo.crosslink.net 924645368 13724 151.121.64.82
Newsgroups: comp.os.os2.misc,aus.computers.os2,comp.os.os2.apps