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!

How to pass susequent arguments to application and keep capturing outp

Status
Not open for further replies.

bolobaboo

MIS
Aug 4, 2008
120
US
Hi
I have TSM ( tivoli storage manager ) backup application which i invoke using following code. Now i am facing another challenge how to pass arguments to this application once its running and same time keep capturing output for further processing.
Once done then close TSM.

Any help gratly appreciated.

Thank you in adavnce.

'code
'=================================
sSourceFile = "C:\anil\sma01.TXT"
sDestinationFile = "C:\anil\brwssma01.log"
strComputer = "."

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set wshShell = WScript.CreateObject ("WSCript.shell")

wshshell.currentdirectory="c:\program files\tivoli\tsm\baclient"
' Run application
WshShell.Run "dsmadmc.exe -TCPSERVERADDRESS=BRWSTSM1 -TCPPORT=1615 -outfile=" & sSourceFile,1,true
 
PHV
Link you pointed me. Its says how to open application but it did not suggest how to pass command or argument to opened application and capture output once command is excuted.

Let me google around
Thank you
 
Did you follow the StdIn and StdOut properties link ?
 
i see them. Let me bang my head to wall and understand how to use these.
Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top