문제

From my C# program I want to open the power options from the control panel in Windows.

However I can't seem to find out how to do that, I tried making a shortcut and see where it goes but it is referring to the control panel.

Does anyone have an idea how to do that or where the exe is located to launch?

도움이 되었습니까?

해결책

Try the following:

System.Diagnostics.Process.Start("powercfg.cpl");
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top