473,387 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to launch .BAT file inside HTML?

I am having problems with a shockwave .EXE that leaks memory like the dickens. At launch, it loops a welcome screen until a user touches the screen/clicks the mouse, and then it plays all the way through to the end. The memory leakage is coming from the welcome loop. After sitting there looping a lot, the programs eats up too much memory and crashes.

You can prevent crashes by manually quitting and restarting the .EXE, but this is supposed to be run on a standalone kiosk.

I do not have access to the source code; otherwise, I'd have the .EXE quit at the end.

I'm trying a solution that looks like this:

1) At startup, launch local HTML file with graphic saying "Press to begin."

2) On press or click, launch local batch file.

3) batch file opens the .EXE and starts a countdown.

4) At end of countdown, batch file restarts computer. Back to step 1.

Inelegant, but the only solution I can think of. But because of the security risk of HTML opening .BATs, I can't find a way to make this work.

I can set security on the machine to allow ActiveX objects to run. Problem is, I have no skills with ActiveX.

Anybody know a good way to do this in java, launching a local batch file from a local HTML? Or does anyone feel up to giving a noob some ActiveX help? (Also, does anyone use ActiveX anymore? Should I be trying .NET (which I know even less about?))

Alternately, anybody know how to make Windows autolaunch a hyperlinked-to .BAT file, instead popping up the "Do you want to run, save, or cancel?"?

Thanks for taking the time to read this!
Apr 22 '10 #1
0 1682

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Oleg Konovalov | last post by:
Hi, We have an application which is a Java/JSP security wrapper to control access to the contents of the external corporate training Web site (courses). It is a Java/JSP/Struts application...
7
by: dan glenn | last post by:
I want to use some javascript to launch a windows application (this used on intranet) but don't know how. Can anyone help me out please? It'd be neat if I could not only launch the application...
1
by: Lady_A | last post by:
I got an application with an html,css and js UI. The UI basically creates an ActiveX object, which is an unmanaged C++ COM dll which in his turn creates other COM C++ dlls and C# assemblies. At...
4
by: Caroline | last post by:
I'd like to launch an executable file from a web page. Basically, the user enters seven parameters and then clicks a button to generate a graph. The input is written to a file and then read by...
5
by: GrantS | last post by:
Hi I am trying to use ShellExecute to launch an application to display a certain file. The variation on the theme is that I need to be able to specify the application to launch and not simply...
3
by: Jm | last post by:
Hi all Im using System.Diagnostics.Process.Start to launch external apps from my app but the working directory seems to point to where my app is located. How can i get around this and basically...
7
by: dinamointer | last post by:
Could you help me in this problem: I want to launch an exe file(executable jar file) from a web page. I use jsp...and i cannot use vbScript...? could u tell me how should i do it? Thanks
3
by: sympatique | last post by:
I build a web page with Asp.Net. I reserve a Domain name and host space from a professionnal Hosting. They told me to use the file Index.html to launch my .aspx page..... HOW CAN i DO THIS. do...
0
by: =?Utf-8?B?RGF2ZSBIYXJyaXM=?= | last post by:
I'm trying to launch a code coverage tool as part of the post build event for a special debug configuration. It launches just fine, but Visual Studio is busy waiting for the post build to finish...
1
by: yemen2007 | last post by:
hi ever one. i have problem in my html file. i have header file , footer file, and index file. i want compile the header , and footer in the index file use include file put it is not work. this my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.