So, my goal is that I want to get a msgbox that tells me what power plan I'm on without using the command prompt.
I've tried making a batch file but that only does the command.
start cmd /k powercfg/getactivescheme
When I try doing it from the command prompt it just outputs the text of the command in the msg box not the actual output.
msg %username% powerconfg/getactivescheme
Thanks in advance
Try like this (Use
for
to get your command output in a variable):A better example using VBScript MsgBox, which can have custom title and icons:
Learn more on VBScript MsgBox