Launch .bat file from HTML page

A

Alpha_Geek

I need to launch a batch file form a HTML page that runs from a CD. I have
tryed to link to it, but that dose not work. Is there a way to do it with
JavaScript or VBscript, and will it work without runing from a server. I need
to finish this presentation asap, and this is the only thing holding me back.

Also If I use a script to do this, where will I stand from a security point
of view, I am sure that Internet explorer has restrictions regarding the
launching of executables.
 
S

Stefan B Rusynko

You can't because it is not a recognized mime type and it is a security risk
Best you can do (if the user permits it by responding Allow to the security alert) is run a HTA)
See http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/hta_node_entry.asp?frame=true



| I need to launch a batch file form a HTML page that runs from a CD. I have
| tryed to link to it, but that dose not work. Is there a way to do it with
| JavaScript or VBscript, and will it work without runing from a server. I need
| to finish this presentation asap, and this is the only thing holding me back.
|
| Also If I use a script to do this, where will I stand from a security point
| of view, I am sure that Internet explorer has restrictions regarding the
| launching of executables.
 
J

Jens Peter Karlsen[FP-MVP]

What error message do you get?
And no, you can't do this with a script.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: Alpha_Geek [mailto:[email protected]]
Posted At: 08. august 2004 19:01
Posted To: microsoft.public.frontpage.programming
Conversation: Launch .bat file from HTML page
Subject: Launch .bat file from HTML page


I need to launch a batch file form a HTML page that runs from a CD. I
have tryed to link to it, but that dose not work. Is there a way to do
it with JavaScript or VBscript, and will it work without runing from a
server. I need to finish this presentation asap, and this is the only
thing holding me back.

Also If I use a script to do this, where will I stand from a security
point of view, I am sure that Internet explorer has restrictions
regarding the launching of executables.
 
A

Alpha_Geek

well at the moment it just brings up a file download dialog box, the batch
file starts the powerpoint viewer, and a powerpoint slideshow. I need to use
the viewer for quality. I am open to sugestions as to any other way to do
this the scripts i have tryed either do nothing, or give security warnings.
 
J

Jens Peter Karlsen[FP-MVP]

Explain on the page that they should choose to run the batch file when
prompted.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: Alpha_Geek [mailto:[email protected]]
Posted At: 08. august 2004 20:29
Posted To: microsoft.public.frontpage.programming
Conversation: Launch .bat file from HTML page
Subject: Re: Launch .bat file from HTML page


well at the moment it just brings up a file download dialog box, the
batch file starts the powerpoint viewer, and a powerpoint slideshow. I
need to use the viewer for quality. I am open to sugestions as to any
other way to do this the scripts i have tryed either do nothing, or give
security warnings.

Jens Peter Karlsen said:
What error message do you get?
And no, you can't do this with a script.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: Alpha_Geek [mailto:[email protected]]
Posted At: 08. august 2004 19:01
Posted To: microsoft.public.frontpage.programming
Conversation: Launch .bat file from HTML page
Subject: Launch .bat file from HTML page


I need to launch a batch file form a HTML page that runs from a CD. I
have tryed to link to it, but that dose not work. Is there a way to do
 
S

Steve Easton

If you're doing this on a CD use an autorun.inf file on the Cd to open the power point file.

Assuming all people viewing the CD have PowerPoint installed, open notepad and paste the following:

[AUTORUN]
shellexecute=myfile.pps


save it as autorun.inf and burn it as a separate file on the CD so if you look at the CD in Windows
Explorer you will see two files like so.

autorun.inf
myfile.pps

Try a sample with a floppy first.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

Alpha_Geek said:
well at the moment it just brings up a file download dialog box, the batch
file starts the powerpoint viewer, and a powerpoint slideshow. I need to use
the viewer for quality. I am open to sugestions as to any other way to do
this the scripts i have tryed either do nothing, or give security warnings.

Jens Peter Karlsen said:
What error message do you get?
And no, you can't do this with a script.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: Alpha_Geek [mailto:[email protected]]
Posted At: 08. august 2004 19:01
Posted To: microsoft.public.frontpage.programming
Conversation: Launch .bat file from HTML page
Subject: Launch .bat file from HTML page


I need to launch a batch file form a HTML page that runs from a CD. I
have tryed to link to it, but that dose not work. Is there a way to do
it with JavaScript or VBscript, and will it work without runing from a
server. I need to finish this presentation asap, and this is the only
thing holding me back.

Also If I use a script to do this, where will I stand from a security
point of view, I am sure that Internet explorer has restrictions
regarding the launching of executables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top