Re: Trying to run command line script from SQL Server job
The same problem as above.
You even get a hint:
The syntax you are using is wrong.
So it should be:
You even get a hint:
Automatic actions are disabled when URL address is provided on command-line.
The syntax you are using is wrong.
- Use
open
command, do not specify the session URL as command-line parameter for scripting (the primary problem) - The
/console
has no effect when usingwinscp.com
- There's no
/y
switch.
So it should be:
D:\WORK\FTP-SYNC\FTPClient\winscp556\WinSCP.com /command "open ftp://username:pwd@files.demosite.com -timeout=60" "put D:\Work\Calendar\calendar.pdf /_sitecalendar/" "exit" /log=D:\WORK\FTP-SYNC\LOG_Calendar.txt