Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

YairGOW

Re: Auto-downloading Script Help Needed.

martin wrote:

WinSCP cannot skip the directories that does not contain any matching file.


Okay, I see. Thanks for the reply.
martin

Re: Auto-downloading Script Help Needed.

WinSCP cannot skip the directories that does not contain any matching file.
YairGOW

Auto-downloading Script Help Needed.

Hey, I'm using a script to automatically download new files that are in a specified directory on the server, and I want to make the script not look for files that match the mask in directories that are inside this directory, cause what it does is look for the files in all the directories in the parent directory I've specified and it creates a lot of unneeded empty directories since the files I've filtered for the script to grab will be in the directory I've specified only, and not in a directory in it.

This is the script:
option batch abort

open ftp://user:pass@IP:port
option transfer binary
get -resume -preservetime -filemask=*.ts>4H "/files/Sources/Completed" "D:\Incoming\"
close
exit


And this is the batch files that I use to run the scrip, though I doubt it's needed:
@echo off

start /min winscp.exe /console /script=download_script.txt


I'd be really grateful if this could be solved, but nonetheless, this is a great solution for auto-downloading from the server.