Topic "Unknown command ''."

Author Message


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

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


ftp-script.txt file

Code: /log=ftp.log /command ^
    "open" ^
    "put -latest C:\Users\Dan\Documents\Test\* /

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

No idea what could be going wrong?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
Your duplicate (and answered) question on Super User:

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License