Click here to Skip to main content
11,922,641 members (57,319 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 23:59pm
Edited 19-Jun-12 0:01am

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

Advertise | Privacy | Mobile
Web03 | 2.8.151125.1 | Last Updated 19 Jun 2012
Copyright © CodeProject, 1999-2015
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