LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Moving multiple files by date range and/or file name filtered

I need to move multiple files by date range and/or by filename (using a filter) to another directory. 

 

OR

 

How can I get the attributes of files in a directory, something you would see when typing in "dir" in a DOS or ls in UNIX.  I can parse this info and then make a array of files to move.

 

The reason for needing this is that I need to move files that are located in another country, and sort them into different directories based on date.  Having to read each file for it's file information adds wasted time that I can't afford.  I am about to create a dos terminal to do a "dir" command to get the information and parse it out.. but I was hoping LV had a function that can get me that info so I don't have build it.

 

THanks.

0 Kudos
Message 1 of 3
(3,222 Views)

You should use the 'File/Directory Info' functionality.

 

This will return the last modificatoin of the file.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 3
(3,217 Views)

I know about the File/Directory Info, but that only does one file at a time.  Going through a slow network with 5000 files and individually performing that function is extremly slow.  Currently I'm using that vi to get the info for each filename listed in that directory, but it's it's very slow and needs another method.  

 

If I open a dos window and type in "dir \\10.101.0.101\c$" it would give me a list of files & directories with the time date, etc.  I need a single vi that can do that at that speed.  Otherwise I'll just have to make a vi that does in DOS and parse out the response.

 

0 Kudos
Message 3 of 3
(3,214 Views)