12-03-2008 01:45 AM
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.
12-03-2008 02:21 AM
You should use the 'File/Directory Info' functionality.
This will return the last modificatoin of the file.
Ton
12-03-2008 02:33 AM
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.