Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

dbr

Unknown command 'winscp.com'.

I have just recently installed WinSCP 5.7.7 for the first time, and it's installed under

C:\Program Files (x86)\WinSCP

I am trying to automate a simple script to upload only the newest files added to a directory to the FTP server but I am having problems just getting the script to run.

ftp.bat file

winscp.com /script="C:\AutoRun\ftp-script.txt"


pause


ftp-script.txt file

winscp.com /log=ftp.log /command ^

    "open ftp://user:pass@url.com/" ^
    "put -latest C:\Users\Dan\Documents\Test\* /
    "exit"


Running the ftp.bat files give the following error
"Unknown command 'winscp.com'."

No idea what could be going wrong?