1 Replies - 979 Views - Last Post: 19 June 2012 - 07:05 AM Rate Topic: -----

#1 vikramsinh_shinde  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 22-February 12

Download only most latest/recent uploaded file from FTP server

Posted 19 June 2012 - 02:00 AM

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.

Is This A Good Question/Topic? 0
  • +

Replies To: Download only most latest/recent uploaded file from FTP server

#2 mccabec123  Icon User is offline

  • D.I.C Head

Reputation: 18
  • View blog
  • Posts: 233
  • Joined: 03-March 11

Re: Download only most latest/recent uploaded file from FTP server

Posted 19 June 2012 - 07:05 AM

Use BASH, many more options available to you and it's better :P
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1