02-24-2021 07:03 AM - edited 02-24-2021 07:04 AM
Hi,
I am having trouble finding a way to select files from specific directories which I will will later need to append their filenames for another process. The files are firmware files for downloading to microcontrollers. There are typically 3 directories I need to "parse" to choose the files labeled "1", "2", or "bgm111_only". I can parse out the files from the directories just fine, the issue is that the files in the "bgm111_only" folder will have some filenames that are exactly the same as those from the other 2 directories. These filenames can not be changed! So I need to separate them from the other directories, and then will append their filenames to use inside of a Listbox in my LV application.
Hopefully I have explained this clearly enough :). I have attached screenshots of the directories in question, as well as the VI where I have successfully gotten the files returned from the "1", and "2" directories. Again, I need to separate the files from the "bgm111_only" folder to later append their filenames ONLY for the user(s) of the LabVIEW app.
Thanks very much for any help / advice.
George
Solved! Go to Solution.
03-01-2021 04:01 AM
I don't know if you still need an answer, but I would say that your question is not clear enough. It seems to me that you can simply iterate over all of the files, strip their path once or twice to figure out which folder they're in and use that to build your lists.
03-01-2021 08:40 PM
Not sure, but maybe this XControl will work for you.
03-02-2021 07:51 AM
Hi tst & paul.
The Xcontrol route is interesting. I was unaware of those before you mentioned it. I have basically wrote what tst had suggested. The attached vi takes the list of paths produced in a previous vi, and by using the indices of the duplicate files, I am able to append the names for the menu in my app.
Thanks very much for the help!
George
08-13-2021 03:46 AM
Hi guys ,
Actually i am student and i have a project with labview and this is my first time
so I need select specific files and copy them to another folder under 2 condition and i only find the way to get the files 's name that i need and i couldnt copy them or even select them cause the resulat that have now give me an arraylist that have files's names thats it so if any one can help please contact me
Thanks .