0

hey..can someone help me??
i have a html/php file with a command button
and when i clicked it, it will run the exe file
of a vb6 application.
how can i do this?can i have sample code??
thanks in advance.

Edited by pritaeas: Moved.

2
Contributors
4
Replies
6
Views
4 Years
Discussion Span
Last Post by newbie26
0

Where do you want to run the application? If you make this in PHP it will run on the server. It is not possible to execute your application on the client (lots of security issues).

0

client side...
it's like..we have an intranet site used by almost everybody in the office
and im creating a program in php that can execute a vb6 application (another program)
when the user clicks a button (in php)
hope you can help me..
thanks

0

im creating a program in php that can execute a vb6 application (another program)

Not possible.

when the user clicks a button (in php)

That would be Javascript. A browser will not allow you to run a file.

0

ok. javascript will do.can you give me sample code?
i had searched for many of codes but none of them worked.using javascipt functions
which will be executed in onclick property of a button.

like this:
var shell = new ActiveXObject("WScript.Shell");
shell.run("c:/windows/system32/calc.exe",1);

and this one:
Runtime.getRuntime().exec("calc.exe"); or this Runtime.getRuntime().exec('c:\Windows\System32\calc.exe');

thanks for answering.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.