How to notify user that the new version of file is download

Advertisement

shaktisingh
Joined:
Posts:
1

How to notify user that the new version of file is download

HI,

I am using WinScp to synchronize remote and local file. I want to download the remote file if there is any update in the file.

I have created script for this and successfully scheduled with the windows task scheduler and that download the file only when if the remote file is updated.

I used this in script
option include test.csv 
synchronize local d:\ /home/username
But I also want to notify the Windows user that the new version of remote file has been downloaded.

Is this possible to generate a some kind of notification only when if there is a new version of file has been downloaded, say a pop, or some kind of message so that the user aware of that the new version of file has been download and he does not need to go there every day and check if the file is updated or not.

Thanks for your help

Reply with quote

Advertisement

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

Re: How to notify user that the new version of file is download

Turn on XML logging and look for <download> tag in the log after the script finishes.
https://winscp.net/eng/docs/logging_xml

If you find one, act accordingly, e.g. you can send an email:
https://winscp.net/eng/docs/script_email
https://winscp.net/eng/docs/guide_automation#results

It might be easier to use WinSCP .NET assembly from a PowerShell script:
https://winscp.net/eng/docs/library_powershell

Reply with quote

Advertisement

You can post new topics in this forum