Capturing Return Code
I just installed WinSCP - awesome program I must add. I use Visual Basic to upload a file on a regular basis.
Shell """C:\Program Files (x86)\WinSCP\WinScp.exe"" /command ""option batch abort"" ""open abc.com"" ""put """"c:\A\Nu File.ttt"""" ""exit"""
When I run the above statement and then open the site in explorer, the file gets uploaded but with the name 'exit'. If I remove the exit switch all together, then the file gets posted correctly. What am I doing wrong here? I dont seem to lose any functionality by omitting the exit switch but I'd just like to know how to include it
Also, how can I capture return codes? Do I have to specify another file that receives the return code? If so, how?[/code]
Shell """C:\Program Files (x86)\WinSCP\WinScp.exe"" /command ""option batch abort"" ""open abc.com"" ""put """"c:\A\Nu File.ttt"""" ""exit"""
When I run the above statement and then open the site in explorer, the file gets uploaded but with the name 'exit'. If I remove the exit switch all together, then the file gets posted correctly. What am I doing wrong here? I dont seem to lose any functionality by omitting the exit switch but I'd just like to know how to include it
Also, how can I capture return codes? Do I have to specify another file that receives the return code? If so, how?[/code]