Article View: comp.os.os2.misc
Article #16888Netscape + helpers + .cmd
From: bruce
Date: Tue, 20 Apr 1999 00:00
Date: Tue, 20 Apr 1999 00:00
31 lines
2303 bytes
2303 bytes
I wrote a little REXX script so I can access 'Shout Servers' so I can listen to streaming MP3 content. <---------------------------- /* shout.cmd */ Parse Arg ShoutFile /* File sent from the Shout Server via NetScape */ PlayList=CharIn(ShoutFile,1,200) /* Hope the file is no longer than 200 characters */ Do HereTis = 1 to Length(PlayList) /* Search the length of 'PlayList' string */ If SubStr(PlayList,HereTis,4) = 'http' Then Leave /* When we find http... leave */ End 'd:\mp3\work\mp123.exe' SubStr(PlayList,HereTis) exit <------------------ 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? Any help would be great, Thanks. bruce@transit.omen.com.au
Technical Details
Message-ID:
<c1.2c.2QRmCZ$00s@transit.omen.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1044c2,c5966f70023210f,start X-Google-Attributes: gid1044c2,public X-Google-Thread: 10a752,c5966f70023210f,start X-Google-Attributes: gid10a752,public X-Google-Thread: 112d6c,c5966f70023210f,start X-Google-Attributes: gid112d6c,public From: bruce@omen.com.au Subject: Netscape + helpers + .cmd Date: 1999/04/20 Message-ID: <c1.2c.2QRmCZ$00s@transit.omen.com.au> X-Deja-AN: 468755359 Distribution: world X-Complaints-To: abuse@omen.net.au X-Trace: demeter.omen.net.au 924620731 20173 203.8.107.3 (20 Apr 1999 15:05:31 GMT) Organization: Omen Internet in Perth, Western Australia Reply-To: bruce@transit.omen.com.au NNTP-Posting-Date: 20 Apr 1999 15:05:31 GMT Newsgroups: comp.os.os2.misc,aus.computers.os2,comp.os.os2.apps