giogio Posted December 10, 2007 Share Posted December 10, 2007 $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 More sharing options...
weaponx Posted December 10, 2007 Share Posted December 10, 2007 You can Send() that text to the command prompt but what are you trying to accomplish? Link to comment Share on other sites More sharing options...
giogio Posted December 10, 2007 Author Share Posted December 10, 2007 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 More sharing options...
picaxe Posted December 12, 2007 Share Posted December 12, 2007 Have a look here for a util to enable Console UI. Then you can use something likeConsoleWrite("Caption: " & $objItem.Caption)I've used this to write some dos32 filters. Link to comment Share on other sites More sharing options...
giogio Posted December 14, 2007 Author Share Posted December 14, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now