Click here to Skip to main content
12,946,658 members (49,688 online)
Rate this:
Please Sign up or sign in to vote.
I have a FTP server. On the FTP server, there will be log files per day and also
there will be multiple files per day. Each file will have datetime stamp appended to filename as follows,

log_date_time.csv (log_DDMMYY_HHMM.csv)

Some of example filenames for same day are,


The datetime stamp of filename will be same as uploaded datetime stamp.
The time part of filename is using 24 Hr format.

I have to write a script for task scheduler which will only download most latest/recent uploaded file for that day. I am allow to use only scripting technique like batch or Powershell.

Any alternative approach would be very helpful.
Posted 18-Jun-12 22:59pm
Updated 18-Jun-12 23:01pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 4,919
CHill60 3,235
Maciej Los 2,508
Jochen Arndt 1,935
ppolymorphe 1,795

Advertise | Privacy | Mobile
Web01 | 2.8.170518.1 | Last Updated 19 Jun 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100