Topic "Automatic Transfer of files from remote server to local machine using Winscp"

Author Message
planetz
[View user's profile]

Joined: 2016-06-08
Posts: 2
I need to transfer multiple files from a remote server to local machine.

I have then scheduled winscp.exe with argument "/console/script=D:\sync.txt"
sync.txt file contains the following commands.

option batch on
option confirm off
open username@hostname
cd folderContainingFiles
option transfer binary
get /desiredFile.extension pathInLocalComputer
exit

When I am running the task, winscp window is opening but it is not logging in.

Any help anyone?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
There has to be a space between the console and the /script=...:

/console /script=D:\sync.txt
planetz
[View user's profile]

Joined: 2016-06-08
Posts: 2
prikryl wrote:
There has to be a space between the console and the /script=...:

/console /script=D:\sync.txt


Hey, I got it...now it is solved. Thanks..!! Very Happy
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