Topic "Unknown command 'winscp.com'."

Author Message
dbr

Guest


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:
winscp.com /script="C:\AutoRun\ftp-script.txt"

pause


ftp-script.txt file

Code:
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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Your duplicate (and answered) question on Super User:
http://superuser.com/questions/1086799/winscp-unknown-command-winscp-com
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License