I am new to creating Windows Script Host Scripts.
The script shown below creates an empty Output.txt file. Does anyone see anything wrong with the script?
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim exeName
Dim statusCode
strCommand = "C:\Program Files\TortoiseSVN\bin\svn.exe info ""C:\Users\Me\Desktop\MyRepo""" & "> C:\Users\Me\Documents\Output.txt"
WshShell.Run "%comspec% /c " & strCommand, 1, True
MsgBox("End of Program")
Update: As mentioned in the comments below, my issue was with not recognizing a path having a space needs to be quoted. Since the path is inside a string, the path needs to be double quoted. If I would have initially tested it on the command line, I would have noticed that.