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

Advertisement

clever4
Joined:
Posts:
1

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,378
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum