1

I had built a window service to read some infomation to open one "*.exe" file. I was used:

Proccess.Start("pathfile");

When i debug on VS, it is ok. But when i created a window service use sample code, it's not opening file in new window, although in Start Task Manager window still it shows the name of proccess. What is the solution for this case? Help me please

GANI
  • 2,013
  • 4
  • 35
  • 69
Sun Hello
  • 21
  • 2
  • 1
    possible duplicate of [How to start a process from windows service into currently logged in user's session](http://stackoverflow.com/questions/4278373/how-to-start-a-process-from-windows-service-into-currently-logged-in-users-sess) – Orel Eraki Aug 13 '15 at 23:05
  • It's very useful. Thankyou @OrelEraki! – Sun Hello Aug 14 '15 at 22:07

1 Answers1

0

You must fully qualify that path like below:

if the file is c:\temp\app.exe the code should be

 Process.Start("c:\\temp\\app.exe");
Infinity Challenger
  • 1,090
  • 10
  • 19