Topic "Gedtting files from folder whose nae is current date"

Author Message
Stev1eF

Guest


Hi

I am writing a batch script that gets files from a remote directory whose name reflects the current date. i.e. The directory of the 14th April 2011 will be names '20110414', this directory is also a subdirectory of the root directory.

How can I write a batch script that will recognise the current date and use this to specify the remote directory?

I am very new to this and appreciate all help given.

Thanks
Steve
Stev1eF

Guest


Stev1eF wrote:
Hi

I am writing a batch script that gets files from a remote directory whose name reflects the current date. i.e. The directory of the 14th April 2011 will be names '20110414', this directory is also a subdirectory of the root directory.

How can I write a batch script that will recognise the current date and use this to specify the remote directory?

I am very new to this and appreciate all help given.

Thanks
Steve


Just corrected some terrible spelling mistakes. Smile
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
This example can help you:
https://winscp.net/eng/docs/script_download_timestamped_filename
_________________
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