View Single Post
  #1  
Old 05-06-2010, 10:07 AM
louwho louwho is online now
Registered User
 
Join Date: 04-15-2010
Posts: 3
Question How to output SCM info to a file from VBScript?

Currently, we have this line in a VBScript step...

objShell.Run chr(34) & strSurround & "\SSCM" & chr(34) & " GET " & chr(34) & MyPath & chr(34) & " -e -f -wreplace -d" & strSDKPath & " -p" & strBranchConfCtl & " -z" & strSurrSvr & ":4900", 0

We would like to capture the information to a text file at the same time. I have tried the following, and while the output .txt file is created, it is always blank...

strFile = "C:\lou.txt"
strCommand = "%comspec% /c " & Chr(34) & strSurround & "\SSCM" & chr(34) & " GET " & chr(34) & MyPath & chr(34) & " -j -e -f -wreplace -d" & strSDKPath & " -p" & strBranchConfCtl & " -z" & strSurrSvr & "4900 > " & strFile
' InputBox "Running", "Command", strCommand
objShell.Run strCommand,0,true

I have tried it with and without the "%Comspec% /c"...what am I doing wrong?
Reply With Quote