Click here to Skip to main content
Rate this: bad
good
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 23:59pm
Edited 19-Jun-12 0:01am
v2

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

  Print Answers RSS
0 OriginalGriff 7,853
1 Sergey Alexandrovich Kryukov 7,107
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 19 Jun 2012
Copyright © CodeProject, 1999-2014
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