I'm trying to auto sync local files with a server using WinSCP. I'm getting the following script error:
Here is my vba code:
Public Sub pullwinscp()
Shell "wscript C:\Users\Aaron\Desktop\SyncSftp.vbs", vbNormalFocus
End Sub
And here is the script I'm trying to call (saved as .vbs):
open sftp://User:Password@webaddress.org -hostkey="aaaaa-aaa2 aaaaa256 7a:4a:aa:aa:aa:aa:aa:aa:a1:aa:aa:aa:aa:aa:aa:aa"
synchronize local C:\Users\Aaron\Documents\test /home/FTP/Acct Hourly Acctg
Any ideas why I'm getting this error?