Sign in to follow this  
Followers 0
giogio

redirect to the cmd.exe window

5 posts in this topic

$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

Share this post


Link to post
Share on other sites



You can Send() that text to the command prompt but what are you trying to accomplish?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Have a look here for a util to enable Console UI. Then you can use something like

ConsoleWrite("Caption: " & $objItem.Caption)

I've used this to write some dos32 filters.

Share this post


Link to post
Share on other sites

GREAT GREAT GREAT , MANY TANKS

FRANCO

Have a look here for a util to enable Console UI. Then you can use something like

ConsoleWrite("Caption: " & $objItem.Caption)

I've used this to write some dos32 filters.

Share this post


Link to post
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
Sign in to follow this  
Followers 0