call an external process from Windows service in C#2.0?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deepadeshmukh
    New Member
    • Oct 2007
    • 2

    call an external process from Windows service in C#2.0?

    How to call an external process from Windows service in C#2.0?
    This code doesnt works

    protected override void OnStart(string[] args)
    {


    Process.Start(" C:\\Documents\\ sessiondemo\\se ssiondemo\\bin\ \Debug\\Session demo.exe");
    }
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Does it throw an error? What happens, does it make the call?

    Comment

    • deepadeshmukh
      New Member
      • Oct 2007
      • 2

      #3
      Originally posted by Plater
      Does it throw an error? What happens, does it make the call?
      No it doesnt throw any error but it doesnt start that process

      Actually i want to execute SessionSwitch event from windows service but doesnt works so i called that windows application exe through process

      Comment

      Working...