Run external exe in C#
-
hi guys, I want to run any C# made exe from another C# program. For that i used this code: System.Diagnostics.Process.Start(exe path); It's working fine. But when i am using same code in OnStart() method of Windows Services. It will start the process into Task Manager Processes, but not showing in screen whatever GUI that exe has. To show GUI also , what should i do? Thanks....
-
hi guys, I want to run any C# made exe from another C# program. For that i used this code: System.Diagnostics.Process.Start(exe path); It's working fine. But when i am using same code in OnStart() method of Windows Services. It will start the process into Task Manager Processes, but not showing in screen whatever GUI that exe has. To show GUI also , what should i do? Thanks....
As services run under on different desktop, the application is running but it's gui is displayed on different desktop, that's why you can't see it. If you want to see GUI you will have to run process ob behalf of the user that is logged in. If you want to have GUI for your service, just create new winforms application. To communicate between GUI and service you can use IPC or .NET Remoting.
Giorgi Dalakishvili #region signature My Articles / My Latest Article[^] / My blog[^] #endregion
-
hi guys, I want to run any C# made exe from another C# program. For that i used this code: System.Diagnostics.Process.Start(exe path); It's working fine. But when i am using same code in OnStart() method of Windows Services. It will start the process into Task Manager Processes, but not showing in screen whatever GUI that exe has. To show GUI also , what should i do? Thanks....
You need to manually set the 'Allow service to interact with Desktop' to on. Did you think how this will work when the PC starts, and no-one is logged in?
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - coming soon
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x)) -
You need to manually set the 'Allow service to interact with Desktop' to on. Did you think how this will work when the PC starts, and no-one is logged in?
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - coming soon
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))leppie wrote:
You need to manually set the 'Allow service to interact with Desktop' to on.
But it is no more supported in Vista.
Giorgi Dalakishvili #region signature My Articles / My Latest Article[^] / My blog[^] #endregion
-
You need to manually set the 'Allow service to interact with Desktop' to on. Did you think how this will work when the PC starts, and no-one is logged in?
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - coming soon
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))Thanks .........It's working now.....
-
You need to manually set the 'Allow service to interact with Desktop' to on. Did you think how this will work when the PC starts, and no-one is logged in?
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - coming soon
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))hi......leppie..... Now it's working fine. But i want to set this property programmatically. Is it possible? Thanks......
-
hi......leppie..... Now it's working fine. But i want to set this property programmatically. Is it possible? Thanks......
-
No you cant, as said, this is apparently not even possible on Vista.
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - coming soon
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))ok.......Thanks...