Topic "About the GET command"

Author Message
plois00
[View user's profile]

Joined: 2007-06-07
Posts: 6
Hello,

Thank you for taking the time to reply to my previous posts. It's been helpful.

About the GET command... Does it make a copy of all files matching the wild card (*.TXT) and then going through that list perform the transfer or is it working in real time?

I am asking because I have a case where files are being built while the transfer occurs, and some files do not get transferred. It seems that the GET processes only whatever files have been created so far.

The creation of all the files is done in a very short time compared with the duration of the transfer that takes minutes.
I would have thought that in real time time all the files would actually be processed.

Thank you again.

PL
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
WinSCP collects names of files matching the mask and then transfers them. I believe that there's no way to do it in "realtime".
_________________
Martin Prikryl
vikasgarg21

Guest


Hi,
I am using the following syntax to connect to one of my ftp servers and trying to GET a file from it thru "/Command" as I don't want to use the graphical as well the command line (of WINSCP) interface.
Ultimately my code will generate a batch file and thru which all of these things would happen.

winscp.exe ftp://user:pwd:@myserver:21 /command "get 11052008.dyc" "exit".
When I am doing it its not getting me any result.
But graphical and command line (of WINSCP) works, I am able to do it.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
vikasgarg21 wrote:
Hi,
I am using the following syntax to connect to one of my ftp servers and trying to GET a file from it thru "/Command" as I don't want to use the graphical as well the command line (of WINSCP) interface.
Ultimately my code will generate a batch file and thru which all of these things would happen.

winscp.exe ftp://user:pwd:@myserver:21 /command "get 11052008.dyc" "exit".
When I am doing it its not getting me any result.
But graphical and command line (of WINSCP) works, I am able to do it.

For security reasons you cannot use URL-like session specification on command-line together with any automation.
You would know that if you use /console as well.
But you can do:
winscp.exe /command "open ftp://user:pwd:@myserver:21" "get 11052008.dyc" "exit"
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