Article View: comp.lang.javascript
Article #232Re: Can I execute another application?
From: David A. Agbamu
Date: Mon, 14 Oct 1996 00:00
Date: Mon, 14 Oct 1996 00:00
43 lines
1882 bytes
1882 bytes
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
Technical Details
Message-ID:
<3263a2f9.11279589@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<Magpie845312861eshave@edlyn.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: david@agbamu.demon.co.uk (David A. Agbamu) Subject: Re: Can I execute another application? Date: 1996/10/14 Message-ID: <3263a2f9.11279589@news.demon.co.uk> X-Deja-AN: 189446768 x-nntp-posting-host: agbamu.demon.co.uk references: <Magpie845312861eshave@edlyn.demon.co.uk> content-type: text/plain; charset=us-ascii mime-version: 1.0 reply-to: david@agbamu.demon.co.uk newsgroups: comp.lang.javascript,demon.homepages.authoring