How to start `powercfg.exe -energy` from a .NET app?

不问归期 提交于 2019-11-28 14:17:45

I'm afraid I cannot duplicate your results; I get the results file as expected. But if it helps, perhaps my testing parameters will help you narrow down what may be the culprit in your environment:

  • Running Visual Studio 2010 as Administrator
  • Targeted .NET 4 Client Profile
  • Compiled both x86 and Any CPU binaries
  • Computer is running Windows 7 x64

Set the WorkingDirectory to the path energy.dll and powercfg.exe is located.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!