Click here to Skip to main content
12,406,528 members (54,535 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,

log_190612_0420.csv
log_190612_0511.csv
log_190612_1445.csv

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
v2

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
Web02 | 2.8.160730.1 | Last Updated 19 Jun 2012
Copyright © CodeProject, 1999-2016
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