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

Advertisement

planetz
Joined:
Posts:
2

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

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,317
Location:
Prague, Czechia

Re: Automatic Transfer of files from remote server to local machine using Winscp

There has to be a space between the console and the /script=...:

/console /script=D:\sync.txt

Reply with quote

planetz
Joined:
Posts:
2

Re: Automatic Transfer of files from remote server to local machine using Winscp

martin 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..!! :D

Reply with quote

Advertisement

You can post new topics in this forum