Running exe files
-
Hi, I have an executable file that I want to run remotely. When I double Click the file and when I use the command prompt, It starts fine.It also runs fine when I use Task Manager. I included the file in the system path and when I run it through the run utility and when I run it in the command prompt(without giving it its full path), It runs but not as expected i.e some of the buttons on the running form are disabled. Running the file through the System.Diagnostics.Process.Start function of C# has exactly the same problem. What I want is to run it through the System.Diagnostics.Process.Start on a remote XP machine.
-
Hi, I have an executable file that I want to run remotely. When I double Click the file and when I use the command prompt, It starts fine.It also runs fine when I use Task Manager. I included the file in the system path and when I run it through the run utility and when I run it in the command prompt(without giving it its full path), It runs but not as expected i.e some of the buttons on the running form are disabled. Running the file through the System.Diagnostics.Process.Start function of C# has exactly the same problem. What I want is to run it through the System.Diagnostics.Process.Start on a remote XP machine.
Your setup isn't entirely clear. Are you trying to run an .EXE on your machine that is stored on a serve? or are you trying to launch code and execute it on a remote machine? If the latter, you've got a problem. You cannot launch an interactive process, meaning the user logged into that machine cannot see any user interface it puts up, on a remote machine.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
Hi, I have an executable file that I want to run remotely. When I double Click the file and when I use the command prompt, It starts fine.It also runs fine when I use Task Manager. I included the file in the system path and when I run it through the run utility and when I run it in the command prompt(without giving it its full path), It runs but not as expected i.e some of the buttons on the running form are disabled. Running the file through the System.Diagnostics.Process.Start function of C# has exactly the same problem. What I want is to run it through the System.Diagnostics.Process.Start on a remote XP machine.
kebedetesema wrote:
I included the file in the system path and when I run it through the run utility and when I run it in the command prompt(without giving it its full path), It runs but not as expected i.e some of the buttons on the running form are disabled.
The application could have a different
CurrentDirectory
. Are you, by any chance, disabling buttons based on the existence of files in the same directory as your main executable?I are Troll :suss: