SFTP Upload - No Error Seen - Resolved
This is now working. I made 2 fairly dumb errors, both of which I should have figured out earlier.
In Scheduled Tasks, file paths have to be quoted since there are spaces in the paths (Program Files).
"C:\Program Files\WinSCP\WinSCP.exe" /console /script="C:\Program Files\WinSCP\myscript.txt" works.
The open command in the script has to be:
open sftp:username:password@company.com
The port augment I was using (:22) does not seem to work or be needed.
Hope this helps someone -
mathsci
PS - this is an EXCELLENT program - Thanks!
In Scheduled Tasks, file paths have to be quoted since there are spaces in the paths (Program Files).
"C:\Program Files\WinSCP\WinSCP.exe" /console /script="C:\Program Files\WinSCP\myscript.txt" works.
The open command in the script has to be:
open sftp:username:password@company.com
The port augment I was using (:22) does not seem to work or be needed.
Hope this helps someone -
mathsci
PS - this is an EXCELLENT program - Thanks!