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

abd1111

Woops, and, yes, target directory does have a slash at the end.
abd1111

Automatically Download Files From Many Subfolders - Script

I have a parent folder MainFolder, and I want all of the *PayStub.csv files from the many different folders and subfolders within MainFolder. Is there a way to do this without .NET yet? I saw the documentation on 'Downloading all files from FTP/SFTP to the same local folder'
I keep trying with:
cd /MainFolder/
get *PayStub.csv "C:\destination\folder"

but never ever works. Only if I change cd to the exact folder about 10 levels down will I get the csv copied over to destination folder. I'm trying to make it all-encompassing as best as possible.