LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get filename of the latest one in the selected directory

Solved!
Go to solution

Hi, everyone.

 

I would like to know how to get the filename of the latest modified or latest created one from the selected directory.

I think there is no labview function to do so.

Any beneficial information is appreciated.

Thanks in advance.

 

 

 

Version: LV2010 64bit

PC: Win7

 

 

0 Kudos
Message 1 of 3
(2,455 Views)
Solution
Accepted by topic author mwu_io

Hi mwu,

 

You can look at this example as it does almost what you want to do:

 

Find Most Recent Folder in a Folder of Files

https://decibel.ni.com/content/docs/DOC-10765 

 

It gets the last created subfolder in a folder. To get it scan for the most recent file you have to use the output "File Name" of the "List Folder" vi.

 

You cna find the modified VI attached or modify it yourself.

 

Regards 

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 2 of 3
(2,435 Views)

Dear Florian Abry,

 

Thank you for your quick reply.

Your suggestion completely soleved my problem!!

I appreciate your kindness!

 

Sincerely,

 

mwu_io

0 Kudos
Message 3 of 3
(2,416 Views)