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

MikeIt

Re: Creating batch file for sftp - do not want to send empty files

Thank you, Worked perfect... saved me a lot of time
Mike

martin wrote:

Use a file mask with a size constraint
https://winscp.net/eng/docs/file_mask#size_time

put -filemask=*>0 C:\local\path\* /remote/path
ConnieD

Re: Creating batch file for sftp - do not want to send empty files

Thank you for the code sample. That worked great.
ConnieD

Creating batch file for sftp - do not want to send empty files

I am creating a batch file to sftp files to another server. Sometimes the application that creates the files will create empty files. I do not want to send these, but have not found a way to exclude them.
Any guidance would be great.