Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

capture cmd line data?

Status
Not open for further replies.

Smithsco

Technical User
Mar 30, 2003
89
AU
I'm using a program Pmon.exe which displays it's data in a command line window, I would like to get this data into a file automatically when I rnu the rest of my script. Is it possible to copy and paste data from a command windows using vbs?

Or can anyone think of another way to do this?
 
do I use it like:

Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("test.bat")

fs.Writeline oExec.StdIn
 
You'll want to grab stdout, the output from the thing you Exec. Be sure to wait for it to complete though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top