Topic ".bat file for windows to transfer folders through WinSCP"

Author Message



I want to make a batch file through which i can transfer some of the directories(allowing only newer files to transferred) from the local windows machine to a Linux FTP server.

I made a bat file as following

cd "Path to the Directories"
winscp usrname:password@IP:port number

Using this batch files we are logged on the FTP directory, but if i pass anyother
command in this batch file it does'nt works.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27059
Location: Prague, Czechia
You have to put the commands to WinSCP script file, not to .bat file.
See FAQ and documentation.
Martin Prikryl

You can post new topics in this forum


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