05-24-2010 12:48 AM
I would like to search the *.c,*.h and *.cfg files using List Folder and finally to find out / filter the folder path alone for the selected *.c,*.h and *.cfg files.
How to do that?.
Is it possible to give *.c,*.h,*.cfg as a pattern input to the List Folder? If i give *.c,*.h,*.cfg as a pattern input it is goving error.
please help.
05-24-2010 01:44 AM
The "pattern" uses the same sintax as the wildcards of the dir (Windows) command, so you cannot use "*.c,*.h,*.cfg".
Use instead List folder three times, one for each extension, and then join the files you get
Marco
05-24-2010 01:51 AM
In windows it is possible to search using the combination of *.c,*.cfg,*.h.
If it is same as windows it supposed to work. please correct if i am wrong?.
Please send example document which gives details related to pattern or regular expression.
05-24-2010 01:52 AM
seperating the file name with semicolon works for file dialog but not for list folders
You can try something like this
05-24-2010 01:59 AM
Is it possible to remove the duplicate file name from the filename output from the List folder?.
whether i need to use complicated sorting?
05-24-2010 02:23 AM
05-24-2010 02:25 AM
Hi!
Kals, do you expect to have files with the same name in the same directory?
05-24-2010 02:30 AM
05-24-2010 02:35 AM
Kals wrote:
The file name would be same in different directory. But the output from list Folder filename is going to same. i would like to remove duplicate filename.
You can delete it from the array that you are getting right?
08-03-2012 05:52 AM
I edited the idea slightly.
This vi accepts a pattern string separated by semicolons and outputs a 1D array instead of a 2D array.
This is how the "List Folder.vi" SHOULD work.