[FONT="]I am very new to the world of laptops (always been a PC user) so not sure if this is possible but I thought I'd ask.
I have a laptop that runs on AC power for half of the day doing various tasks. If there was a power cut and I am about (within the building for example) I would quickly come and shutdown the laptop without the battery completely being drained running this task. My question is, is there anyway a batch, vbs or a free program that I can use so when I am not about, checks/monitors to see what the power source is and when a power source has changed from AC to battery mode, within 2 minutes being on battery, safely runs a shutdown command (shutdown -s) so that at least it shutdowns correctly and not through a battery been drained and damaging the HDD and the laptop. I am on XP but it's going to be soon replaced by Windows 7. I am new to programming so please bear with me if you do have any batches or vbs?
Many thanks.[/FONT]
I have a laptop that runs on AC power for half of the day doing various tasks. If there was a power cut and I am about (within the building for example) I would quickly come and shutdown the laptop without the battery completely being drained running this task. My question is, is there anyway a batch, vbs or a free program that I can use so when I am not about, checks/monitors to see what the power source is and when a power source has changed from AC to battery mode, within 2 minutes being on battery, safely runs a shutdown command (shutdown -s) so that at least it shutdowns correctly and not through a battery been drained and damaging the HDD and the laptop. I am on XP but it's going to be soon replaced by Windows 7. I am new to programming so please bear with me if you do have any batches or vbs?
Many thanks.[/FONT]