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.

Recommended Answers

All 4 Replies

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).

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

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.