![]() ![]() The screenshot below shows that when the battery level reaches 5%, a shutdown.bat file will be ran.īatteryDelay doesn’t have a built-in option to auto start with Windows so you’ll need to create a shortcut of BatteryDeley.exe and drop it in your Startup folder. The top part of the configuration file that starts with semicolon are examples and explanations of what each line does.īasically you’ll only need to edit the alertXpct and alertXcmd values where the pct is the percentage of the battery level and the cmd is the path of the custom program that you want to run. Open BatteryDeley.ini with your favorite text editor such as Notepad or Notepad++. By default, BatteryDeley merely plays a sound and display a small popup image when reaching a certain battery level and when external power is unplugged or plugged back in.Ĭonfiguring BatteryDeley to run a custom program when reaching a certain battery level is actually quite easy if you’re familiar with paths in Windows. It is not that user friendly like Shutter because it doesn’t have a graphical user interface and the configuration is done by manually editing the BatteryDeley.ini file. A portable version is available to download.īatteryDeley is another small program created with AutoHotkey that can be configured to run custom programs when a battery has reached a certain level. Shutter takes up merely a few megabytes of memory and nearly zero CPU usage. ![]() The Lite version is free for non commercial use but is limited to number of events and actions with a nag popup on program startup. Most importantly, go to Advanced tab and select “Start event monitoring when application launches” or else the program only starts up but don’t monitor the event. You will need to select “Autorun at Windows startup/logon” (all users or current users) and optionally “minimize on start of event monitoring”. It would make sense to automatically run Shutter on Windows startup which can be done from the General tab in Options. Whenever your battery level reaches 5%, Shutter will simply run the custom batch file. Now click the Add button from the Action, select Open File and choose the batch file that you want to run. To run a custom batch file or program when the battery reaches a low level using Shutter, you’ll first need to add an event by clicking on the Add button on the event, select Battery Low, optionally change the percentage of the battery level and click Add. There is a “Battery Low” event which you can set it to trigger an event when the battery level drops below specific level. Shutter is a very straight forward scheduling utility that allows you to perform certain actions based on a selection of events. Run custom program or script when power is low in Windows 7 However starting from Windows Vista until the current Windows 8.1, this useful option has been limited to only allow you to choose either two actions which is sleep or shut down. In Windows XP, this can be easily achieved because the operating system allows you to run a custom program when the battery power level is low. ![]() So the only requirement here is the computers must be connected via local area network either by wireless or cable. All you need to do is get the computer that is connected to the UPS via USB connection to send out commands which can remotely shut down other computers when the battery has reached a low or critical level. The technique used in this workaround is actually pretty simple. In this article we’ll show you a couple of ways on how you can use one UPS on multiple computers and automatically shut down all the computers that are connected to that one single UPS. This would mean only 1 computer can know when the battery level is low and auto shutdown the computer but the rest of the computers connected to the other remaining battery protected outlets won’t know and cannot be configured to automatically shutdown. The USB is for the UPS to tell the computer how much power is left on the battery so you can then either use the UPS manufacturer’s software or from the Windows power options perform a graceful shutdown before the battery is depleted. ![]() One way to keep your computer running when there is no electricity, giving you enough time to properly shut down your computer, is by using a battery backup known as Uninterruptible Power Supply (UPS).Ī more affordable lower range home based UPS normally has a few battery protected and surge-only outlets but with only 1 USB connection. However, there are times when things are just out of your control such as an unexpected power failure or your kid pulling the plug out of the socket which causes a forced shut down. Most computer users would know that properly shutting down a desktop PC is very important to prevent your files from getting corrupted and it also minimizes the risk of damaging the hard drive. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |