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

Author Message
clever4
[View user's profile]

Joined: 2010-04-27
Posts: 1
Hi,

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

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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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

Quote:
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.

Quote:
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.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License