Jump to content

redirect to the cmd.exe window


giogio
 Share

Recommended Posts

$strComputer = "."

$objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\CIMV2")

$colItems = $objWMIService.ExecQuery( "SELECT * FROM Win32_DiskDrive")

For $objItem in $colItems

MsgBox(0,"Drive", "Caption: " & $objItem.Caption)

Next

How to redirect the result of the msgbox to the cmd.exe window?

By

Franco

Link to comment
Share on other sites

i use a filemakerpro Datatabase plugin that give me the capability to lunch a vbscript, the plugin redirected the echo result into a record field.

I prefer to use a compiled autoit exe, the exe have to redirect the output as if it is a vbscript echo command.

I don't know how to do.

many thanks

franco

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...