Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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,

C++
log_date_time.csv (log_DDMMYY_HHMM.csv)


Some of example filenames for same day are,

C++
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
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900