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

martin

Re: Get only if NOT 0 bytes, rename and then email.

clever4 wrote:

1. There is always only 1 file in the remote directory to GET. Can you add a syntax to ignore and NOT copy the remote file if it's 0 bytes?

option exclude <1

2. Can you then add a syntax to rename the file with today's date?

No. Please read documentation. If that does not help, come back.

3. Can you then add a syntax to send an email notification when a file has been copied?

No. Please read documentation. If that does not help, come back.
clever4

Get only if NOT 0 bytes, rename and then email.

Hi,

I have setup a script to use winscp /console /script=filename.bat. This works 100%! :)

1. There is always only 1 file in the remote directory to GET. Can you add a syntax to ignore and NOT copy the remote file if it's 0 bytes?

2. Can you then add a syntax to rename the file with today's date?

3. Can you then add a syntax to send an email notification when a file has been copied?

Thanks

Chris