Topic "Keep the different versions of the same file"

Author Message
krishna

Guest


Can anybody help me on this:

There is one job, which is running daily 3 times, after completing the job there would be an Out file (ex., Temp.txt) generates every time on one of Directory.
That means there were 3 same files generating daily (let us take the files names like., Temp_2011_02_11_05_40.txt, Temp_2011_02_11_07_30.txt and Temp_2011_02_11_10_40.txt)

Requirement is, i need to maintain only 6 version of the Temp file on the Directory.

Let me know the logic how we accomplish this task.


Thanks,
krishna
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
If you combine techniques described in example below, you should be able to achieve what you need.
http://winscp.net/eng/docs/script_download_timestamped_filename
http://winscp.net/eng/docs/script_checking_file_existence
http://winscp.net/eng/docs/script_download_most_recent_file
_________________
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