Jump to content

Help launching calc.exe on computer through browser


60aside
 Share

Recommended Posts

Hi Guys,

Hope you can help, I've created a lot of scripts with autoit. But I need to now launch code on a client through a web browser (Internet Explorer 7/8)

To start me off, could anyone help me to launch an exe on a client - for example calc.exe through activex?

Thanks Guys.

Link to comment
Share on other sites

I figured it out anyway using activex, this will launch calc.exe then close the IE window. Not autoIT, just name the file with .html as the extension.

You could put your autoit.exe in the path instead of calc.exe to launch through the browser.

<script>

var ws = new ActiveXObject("WScript.Shell");

ws.Exec("c:\\windows\\system32\\calc.exe");

window.open('','_self');

window.close();

</script>

Link to comment
Share on other sites

As I said before, it only works in Internet Explorer.

Sadly :); i really wish there could be some more functionlity to it; do you know if there is a Java based interpreter? like one i can use in my page?

i think an alternative would work too; check if autoit script is installed, then run a command to autoit.exe

to grab one of my scripts from my site, then execute it with user permission; but i need to find a java alternative so that it can be run from other browsers

Edited by MegaGamerGuy
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...