views:

78

answers:

3

Hi I want to make a web page that lunches an exe on the server when loaded i tried php:

exec('filename');
but this wont show the gui it only work with console apps
i also tried .net to do that it worked when debugging but not when using iis any one can help me?

A: 

If you're just looking for any language that has that capability, I know coldfusion can do that using:

<cfexecute
name="ApplicationName"
arguments="CommandLine Arguments"
OUTPUTfile="Output file name"
timeout="Timeout interval in seconds">
mjw06d
+1  A: 

What code did you use in .NET to execute exe? You should use Process class - check MSDN - it also gives an example as to how to use the class to execute the exe. The class allows lot of option such as redirecting standard i/p, o/p. You can even use WaitForExit method to wait till the process is complete.

VinayC
yes i used this class but no gui displaed
3bd
Not sure why you want to show GUI at server - it does not make sense. As far as why GUI does not get displayed is quite simple - web server runs as a service (under different account) on a server machine. Typically, a non-interactive desktop will be associated with services and GUI if any would get associated with that desktop and so will not be visible on any interactive session that you are using to log on to the server.
VinayC
A: 

exec(); system();

Allows you to execute external programs and get the console output

Dale Hurley
But no gui i tried these but no gui is displayed
3bd