Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

ittrucker

Get and archive remote files

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.

Thanks