Unknown command 'winscp.com'.

Advertisement

dbr
Guest

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?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum