in reply to Re^2: Execute wmic command in cmd
in thread Execute wmic command in cmd

mvib:

As you can see below, you can either use wmic interactively ("like telnet") or as a simple command-line driven program.

H:\>wmic wmic:root\cli>diskdrive get status Status OK wmic:root\cli>quit H:\>wmic diskdrive get status Status OK H:\>

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^4: Execute wmic command in cmd
by mvip (Acolyte) on May 16, 2013 at 12:08 UTC

    Well tnx guys i just dont see the other comma `` i was using the others '' i forgot about writhing in Perl :S sorry any way tnx and it works

    now im trying to put the results in a variable ...

      "now im trying to put the results in a variable ..."

      BrowserUK gave you that here.