If you only want one piece of information, do it all as a single command:
@output = `wmic diskdrive get status`;; print "@output";; Status OK
In reply to Re: Execute wmic command in cmd
by BrowserUk
in thread Execute wmic command in cmd
by mvip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |