kornfan71
New member
- Local time
- 9:44 PM
- Messages
- 27
Hello all,
I'm working on a little Visual Basic .NET program that simply changes the power plan based upon the AC power status and battery percentage status (something that Windows 7 should already do...
)
Anyway, it's coming along well enough, except that I need to have my program run the 'powercfg' command line utility to change plans. I have yet to find a way for my program to determine which plan is in use.
Is there a registry key that changes the current power plan or something similar, or do I need to play around with grabbing outputs from the command line?
Thanks in advance!
I'm working on a little Visual Basic .NET program that simply changes the power plan based upon the AC power status and battery percentage status (something that Windows 7 should already do...
Anyway, it's coming along well enough, except that I need to have my program run the 'powercfg' command line utility to change plans. I have yet to find a way for my program to determine which plan is in use.
Is there a registry key that changes the current power plan or something similar, or do I need to play around with grabbing outputs from the command line?
Thanks in advance!
My Computer
- OS
- Windows 7 Home Premium x64
- CPU
- AMD Phenom II X4 955 BE @ 3.8 GHz
- Motherboard
- Gigabyte GA-890FXA-UD5
- Memory
- G.Skill Pi 2x2GB DDR3-1600 @ 6-7-6-20-1T
- Graphics Card(s)
- Gigabyte NVIDIA GeForce GTX 470
- Sound Card
- SB Audigy 2 and Realtek on-board
- Monitor(s) Displays
- LG 21.5" W2253TQ
- Screen Resolution
- 1920x1080
- Hard Drives
- OCZ Vertex 2 120GB --
Seagate 7200.12 500GB --
Seagate 7200.7 120GB
- PSU
- Thermaltake 750W W0229RU
- Case
- Cooler Master Storm Sniper Black Edition
- Cooling
- Tuniq Tower 120 Extreme
- Keyboard
- Logitech G110
- Mouse
- Logitech G500