Post a reply

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)


Topic review


Exclude directories from download


I'm using this script for downloading files:

# Disable overwrite confirmations that conflict with the previous

option confirm off
# Connect using a password
# open
# Connect
open user:password@server
# Force binary mode transfer
option transfer binary
# Download file to the local directory D:\dbwp_backup\dateien\
get *.* D:\dbwp_backup\dateien\
# Disconnect
# Exit WinSCP

So this works fine, but now i want to use this script on another webserver and there i want to exclude some directories because of huge file size i don't want to download them.
I searched and read in the internet and this forum, but didn't understand how i have to insert another code line or change it to work correctly.

If anyone answers, please don't link me to another page or tell me to read in the FAQs: I don't understand it!
There are a few folders i want to exclude. Maybe someone can complete my code.

Thanks a lot!

Greets Peter