Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to get battery percentage using batch file

# Type this command in cmd or powershell
powershell -command "(Get-WmiObject Win32_Battery).EstimatedChargeRemaining"
 
PREVIOUS NEXT
Tagged: #battery #percentage #batch #file
ADD COMMENT
Topic
Name
8+2 =