LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

list directory in lastest modified

Solved!
Go to solution

hi...

does anyone know how to list a directory? I need to list the file names in the latest modified date.

 thanks in advance

 

 

Best regards,
Krispiekream
0 Kudos
Message 1 of 13
(4,358 Views)
There is a VI called "File/Directory Info" in the File I/O>>Advanced File Function Palette.  I think this will do what you want.
Message 2 of 13
(4,355 Views)
Solution
Accepted by krispiekream

I had something like this in mind...

 

 

 

 

 

 

 

 

 

 

 

 

Message Edited by jmcbee on 03-03-2009 01:43 PM
Message 3 of 13
(4,350 Views)

Hi jmc,

 

why do you use all those conversions? It should work the same without...

Aside from this: nice example!

Message Edited by GerdW on 03-03-2009 09:51 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 13
(4,346 Views)
That is a great question, and it does work the same without converting to DBL and back.  I suppose I did it this way because it is the way I have done it in the past, not good justification though!.  Good observation!
0 Kudos
Message 5 of 13
(4,342 Views)

A better solution...

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Message Edited by jmcbee on 03-03-2009 02:09 PM
0 Kudos
Message 6 of 13
(4,340 Views)

thank you very much..!!!

Best regards,
Krispiekream
0 Kudos
Message 7 of 13
(4,335 Views)

krispiekream wrote:

hi...

does anyone know how to list a directory? I need to list the file names in the latest modified date.

 thanks in advance

 

 


For this, you need to Reverse this Sorted Array of Clusters before the For loop with Unbundle node, in the provided example. Smiley Wink

- Partha ( CLD until Oct 2027 🙂 )
Message 8 of 13
(4,289 Views)

LabVIEW always give us the possibilities for optimization...

 

This also should be OK: Only one for-loop and without sorting:

 

 

Andrey.

Message Edited by Andrey Dmitriev on 03-04-2009 12:43 PM
Download All
Message 9 of 13
(4,285 Views)

But he wants the list of modified files starting from the latest, I think...

- Partha ( CLD until Oct 2027 🙂 )
Message 10 of 13
(4,278 Views)