1
1
I am trying to use WinSCP to automate some basic FTP tasks so I have downloaded and setup the latest WinSCP 5.7.7 however I keep getting the following error when trying to execute the .bat with the script I have created. I am running Windows 10 Pro 1511
Error I get from running the .bat file.
Unknown command 'winscp.com'.
ftp.bat
winscp.com /script="C:\AutoRun\ftp-script.txt"
pause
ftp-script.txt
winscp.com /log=ftp.log /command ^
"open ftp://user:pass@url.com/" ^
"put -latest C:\Users\Dan\Documents\Test\* /
"exit"
1Either use the full path to
winscp.com
or add the appropriate directory to the systemPATH
. – DavidPostill – 2016-06-08T11:31:31.283@DavidPostill The "Unknown command" in WinSCP error message. It's not the Windows "'winscp.com' is not recognized as an internal or external command, operable program or batch file." error message. – Martin Prikryl – 2016-06-08T11:57:55.927