Auto-downloading Script Help Needed.

Advertisement

YairGOW
Guest

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.

Reply with quote

Advertisement

YairGOW
Guest

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.

Reply with quote

Advertisement

You can post new topics in this forum