Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: automatically execute commands when switching to DC

16 Apr 2010   #1

DT and LT: Windows 7 and Fedora 14
automatically execute commands when switching to DC

Is there any way I can tell windows to execute various commands when I pull the power adapter from my laptop? For example, I could tell it to close certain background programs that drain battery life or to change the resolution automatically to save power.......

My System SpecsSystem Spec
16 Apr 2010   #2
not so gray matter

W7 Ult. x64 | OS X

You can try Task Scheduler...

The menus are quite complicated but if you can figure out what event is tripped when the computer switches to battery power then you should be able to set it up correctly.

You can also try an alternative to Task Scheduler such as Z-Cron
My System SpecsSystem Spec
17 Apr 2010   #3

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86

The Power Saver power option automatically disables aero glass and dims screen brightness when you switch to battery power. But if you want more advanced controls such as starting user apps, try Acritum Total Power control.

Acritum Total Power Control for Windows 7 - Enhanced control of PC power features & m - Windows 7 Download
My System SpecsSystem Spec


 automatically execute commands when switching to DC

Thread Tools

Similar help and support threads
Thread Forum
Batch Files - Create a Menu to Execute Commands
How to Use a Batch File to Create a Command Prompt Menu to Execute Commands This tutorial shows the process one goes through when creating a batch file that opens a command prompt menu allowing you to launch commands, programs and more. I will only be executing programs in this tutorial,...
Start Command Prompt and automatically execute a few commands
I am learning a programming language, and I frequently use command prompt to compile source codes, but every time I start command prompt I need to manually cd to the correct directory, and then I like to run cls to keep the window clean. I have looked around, but I'm not sure how to phrase a google...
Execute copy-cut-paste commands via voice
I am looking for a way where I can execute the windows commands "ctrl-c", "ctrl-v" and "ctrl-x" by simply saying "copy", "paste" and "cut" into the microphone of my headset. So simple and verbally uncomplicated instructions, but need to be issued immediately without several seconds delay. First...
Automatically switching off Aero mode?
Hi - I'm having a problem with Windows 7 SP1 where, after a few hours, Windows seems to switch off the Aero theme by itself with no obvious cause. I can't seem to switch it back on, either, when I go into the Personalise menu - there's no option to change the colour of the glass as there usually...
Graphic Cards
execute commands on power event
Is there some way to configure Windows 7 to execute commands (such as resolution changing, killing/starting processes and services, etc.) whenever the laptop switches from AC to DC and back? I have been using batterysaver from but it is still in beta and hasn't seen any updates for...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:45.
Twitter Facebook Google+