Can you look at the code and tell me why it won't set-up my powerconfig? It works fine when launched as batch script (so config files are alright), but not when i run same commands under C#
public void setPowerProfileLaptop()
{
string strCmdText;
strCmdText = "/C REGEDIT /s C:\\Configs\\Enable_Sleep.reg";
Process.Start("CMD.exe", strCmdText);
strCmdText = "/C POWERCFG -Import C:\\Configs\\Chillblast.pow affd6254-c7dd-457c-a259-da407eb5ac00";
Process.Start("CMD.exe", strCmdText);
strCmdText = "/C POWERCFG -SetActive affd6254-c7dd-457c-a259-da407eb5ac00";
Process.Start("CMD.exe", strCmdText);
}
Here is fixed code as suggested by Blorgbeard in comment