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
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