Using the oShell.Run Method instead of the oShell.Exec - run allows .Run(strCommand, [intWindowStyle], [bWaitOnReturn])
SO here's what I'm trying to do:
objShell = ObjectOpen("WScript.Shell")
objWshScriptExec = objShell.Run("cmd /C ipconfig | clip.exe")
oShell = 0
I get the output from ipconfig into the clipboard, where I want it. The big difference I'm trying to work out is using Run and I haven't figured out how to put the arguments in without it throwing an error. I want to set the second parameter to zero which hides the DOS window and set the third parameter to wait till it completes.
DOS straight to the clipboard, no DOS window. Then I can use ClipGet() to work with the output. I haven't figured out how to put the arguments in without it throwing an error. Any help GREATLY appreciated!