Guest User

Untitled

a guest
Dec 12th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. # What's this?
  2.  
  3. This is a script, which tracks charging and discharging time of a Windows powered laptop.
  4.  
  5. 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.
  6.  
  7. Here's a sample:
  8.  
  9. ```
  10. charge=77
  11. mode=discharging
  12. start=09/12/2017 22:36:40
  13. checked=09/12/2017 23:05:51
  14. duration=1751 (00:29:11)
  15. ---------------
  16. 09/12/2017 22:26:51 charging (00:03:00)
  17. 09/12/2017 21:05:39 discharging (00:13:19)
  18. ```
  19. At the top you can see the current information, while at the bottom there's a log, consisting of:
  20.  
  21. * start time
  22. * charging state
  23. * duration
  24.  
  25. # Why?
  26.  
  27. Because Windows 10 doesn't provide this kind of information ... an I really wanted mesure battery performance of my new laptop (Asus UX360)
  28.  
  29. # Installation
  30.  
  31. Download the attached VBS script to yout laptop and save it to desired folder (i.e. *My Documents*)-
  32.  
  33. Then open up Windows Task Scheduler and create a new task:
  34. * General
  35. * Run wether user is logged on not
  36. * Trigger
  37. * Daily: once every minute
  38. * On Event:
  39. * Log: System
  40. * Event ID: 105
  41. * Actions: Start a program - select the VBS script
  42. * Conditions:
  43. * uncheck *Start the task only if the computer is on AC power*
  44. * it should run once every minute
  45.  
  46. 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