How can I pass the output of an EXE file as a parameter into a vbscript file?
Posted on 2013-06-27
I have an executable program called conApp.exe, that retrieves information from BIOS and displays it to the screen as a string of text.
So, if I type conApp.exe from an elevated command prompt, I get the text string displayed to the screen
Typically I redirect that output to a text file so I can use it in another script.
for example; c:\windows\system32>conApp.exe > biosVer.txt
What I would like to do is pass the string of text generated by conApp.exe into variable in a VBScript file and manipulate that text within the VBScript.
for example; testscript1.vbs conApp.exe
How can I do this?