Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # What's this?
- This is a script, which tracks charging and discharging time of a Windows powered laptop.
- It creates a log file, which contains information about time the laptop spend charging and discharging the battery. The collected information can give you a pretty good idea about the battery life of your laptop.
- Here's a sample:
- ```
- charge=77
- mode=discharging
- start=09/12/2017 22:36:40
- checked=09/12/2017 23:05:51
- duration=1751 (00:29:11)
- ---------------
- 09/12/2017 22:26:51 charging (00:03:00)
- 09/12/2017 21:05:39 discharging (00:13:19)
- ```
- At the top you can see the current information, while at the bottom there's a log, consisting of:
- * start time
- * charging state
- * duration
- # Why?
- Because Windows 10 doesn't provide this kind of information ... an I really wanted mesure battery performance of my new laptop (Asus UX360)
- # Installation
- Download the attached VBS script to yout laptop and save it to desired folder (i.e. *My Documents*)-
- Then open up Windows Task Scheduler and create a new task:
- * General
- * Run wether user is logged on not
- * Trigger
- * Daily: once every minute
- * On Event:
- * Log: System
- * Event ID: 105
- * Actions: Start a program - select the VBS script
- * Conditions:
- * uncheck *Start the task only if the computer is on AC power*
- * it should run once every minute
- The task described above will run the script every 60 seconds + whenever laptop is plugged or unplugged from power.
Add Comment
Please, Sign In to add comment