View Single Post
  #7 (permalink)  
Old June 9th, 2008, 01:35 AM
dfelix19 dfelix19 is offline
Registered User
 
Join Date: Jun 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have put the same code (with some changes) in OnStart Event of a service created through aWindows Service prject, it is not working.

Process procMyExe;

procInfo.StartInfo.FileName = "powercfg.exe";
procInfo.StartInfo.Arguments="/create customScheme"
procInfo.UseShellExecute = false;
procInfo.Start();