Closed theldoria closed 9 years ago
please confirm that following command is available on your command prompt :
powershell -command (gwmi Win32_ComputerSystem).TotalPhysicalMemory
It is, with following output:
C:\>powershell -command (gwmi Win32_ComputerSystem).TotalPhysicalMemory
8542261248
hmm... how about this one ?
(shell-command-to-string
(concat "powershell -command "
"echo ----;"
"(gwmi Win32_ComputerSystem).TotalPhysicalMemory;"
"(gwmi Win32_OperatingSystem).FreePhysicalMemory;"
"(gwmi Win32_Battery).EstimatedChargeRemaining;"
"(gwmi Win32_PageFileUsage).CurrentUsage"))
Got the following using C-u C-x C-e at end of sexp:
(shell-command-to-string
(concat "powershell -command " symon--powershell-wmi-command))
"----
8542261248
2310708
4805
"
Guessed it is the missing battery, so I did this for you:
(shell-command-to-string
(concat "powershell -command "
"echo ----;"
"(gwmi Win32_ComputerSystem).TotalPhysicalMemory;"
"echo -0;"
"(gwmi Win32_OperatingSystem).FreePhysicalMemory;"
"echo -1;"
"(gwmi Win32_Battery).EstimatedChargeRemaining;"
"echo -2;"
"(gwmi Win32_PageFileUsage).CurrentUsage"))"----
8542261248
-0
2271036
-1
-2
4803
"
ah, (gwmi Win32_Battery).EstimatedChargeRemaining;
seems not available on your system.
maybe I can fix it in the next version.
thanks. exactly.
Still only get N/A for all values. The tool wmic is available and works, with following output: