🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #228

Re: Can I execute another application?

#228
From: Eddie Shave
Date: Thu, 17 Oct 1996 00:00
55 lines
2244 bytes
In article <3263a2f9.11279589@news.demon.co.uk> David A. Agbamu wrote:
> On Mon, 14 Oct 1996 10:07:41 +0100 Eddie Shave
> <eshave@edlyn.demon.co.uk> wrote:
> 
> >I'm using win3.1/Netscape3.0
> >Can I call a dos program using the javascript OnClick() event. ?
> >This program will create and save a html document, then terminate. 
Control 
> >should then return to the JavaScript.
> >Alternatively is there a way to create and save the document using java 
> >alone?
> 
> This is half an answer. 
> 1)You need Batsh 220
> ftp://ftp.demon.co.uk/pub/mirrors/simtel/win3/batch/batsh220.zip
> (It may have changed version numbers since I downloaded it)
> 
> 2) Associate the extension *.bsh with Batsh220
> 
> A batsh file is very similar to a batch file, but will run under
> Windows. Create a batsh file dosprog.bsh:
> 
> dosprog.exe
> 
> 3) In Netscape set Batsh220 as the helper app for *.bsh files
> 
> 4) You can then create a URL to dosprog.bsh 
> 
> <A HREF="dosprog.bsh">dosprog</A>
> 
> or <A HREF="file:///C|/dosprog/dosprog.bsh">dosprog</A>
> 
> where C:\dosprog\dosprog.bsh is the path to dosprog.bsh
> 
> which should run when the URL is clicked on.
> 
> Let me know if it works.
> 
> 
> David
> -- 
> David A. Agbamu, Manchester, UK.
> The Absolute Beginner's Guide to creating a Demon Homepage
> http://www.agbamu.demon.co.uk/ABG/ABG.html
> 

Works fine... :)

Thanks to all who replied.

--
Eddie Shave 
Derbyshire UK
eshave@edlyn.demon.co.uk
Technical Details
Message-ID: <Magpie845567699eshave@edlyn.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <Magpie845312861eshave@edlyn.demon.co.uk> <3263a2f9.11279589@news.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f76f2,46a29a8f232b67a8
X-Google-Attributes: gidf76f2,public
X-Google-Thread: fb3cb,46a29a8f232b67a8
X-Google-Attributes: gidfb3cb,public
From: Eddie Shave <eshave@edlyn.demon.co.uk>
Subject: Re: Can I execute another application?
Date: 1996/10/17
Message-ID: <Magpie845567699eshave@edlyn.demon.co.uk>
X-Deja-AN: 190013982
x-mail2news-path: news.demon.net!relay-1.mail.demon.net!post.demon.co.uk!relay-3.mail.demon.net!edlyn.demon.co.uk
x-nntp-posting-user: eshave@edlyn.demon.co.uk
references: <Magpie845312861eshave@edlyn.demon.co.uk> <3263a2f9.11279589@news.demon.co.uk>
organization: Edlyn Systems
newsgroups: comp.lang.javascript,demon.homepages.authoring