That command is wrong. I won't work anywhere. First test it on Windows command-line before trying it in VB.
Why
Why
cmd.exe
? Remove it.
cmd.exe
? Remove it.
Sub CMDandSFTP()
Shell ("cmd.exe """C:\Program Files (x86)\WinSCP\WinSCP.com""" /ini=nul """/script=c:\Users\John Doe\Desktop\RCM1.txt""""), 1
End Sub
binary/s
).
"C:\Program Files (x86)\WinSCP\WinSCP.com" /ini=nul "/script=c:\Users\John Doe\Desktop\RCGWM1.txt"
Shell ("""C:\Program Files (x86)\WinSCP\WinSCP.com"" /ini=nul ""/script=c:\Users\John Doe\Desktop\RCGWM1.txt""")
option batch abort
option confirm off
option transfer binary/s
open sftp://user:pass@xxxxxxxxxxx
lcd "C:\Users\John Doe\Dropbox\HF\Strat"
cd /UAT/TradeFile/test
put "FILL CSV"
Exit