Topic "Get and archive remote files"

Author Message
[View user's profile]

Joined: 2013-04-01
Posts: 1
What's the best way to download files from a remote directory, and then move only the downloaded files to another directory on the remote machine? Is it still XML parsing or are the Assemblies the way to go? I have a script that connects to the server and downloads all the files in a directory, and then moves all of the files to the remote archive directory.

The issue is there's a chance that another file could be added to the remote directory during the GET operation and I don't want it to get archived if it wasn't actually downloaded.

I thought I saw a sample script that did this, but if there was I can't find it again.

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26858
Location: Prague, Czechia
The .NET assembly is preferred approach.

Otherwise, the example you are looking for is here:
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