11-11-2014 10:26 AM
Hi,
Is there any file dialog vi that allows you to select multiple files and folders? I am looking at file dialog in advanced file functions but it only allows file selection if I want to select multile items - it doesn't allow me to select folders.
11-11-2014 10:42 AM - edited 11-11-2014 10:46 AM
11-11-2014 10:45 AM
But I wan to select *multiple* files and folders.
11-11-2014 11:22 AM - edited 11-11-2014 11:23 AM
Uncheck the "Limit Selection" box in the Express VI and the function will allow you to select multiple files and folders. Hold CTRL while selecting the files. It will return an array of paths.
11-11-2014 11:24 AM
Correction: It only returns files. My bad.
11-11-2014 12:47 PM
@LVCoder wrote:
But I wan to select *multiple* files and folders.
Uncheck the "Limit Selection to One Item" and select the "Files and Folders".
11-11-2014 01:16 PM
File Dialog doesn't let me select "files of folders" if I uncheck "Limit Selection to One Item". The function automatically select "files" if I uncheck "Limit Selection to One Item"
11-11-2014 01:17 PM
@crossrulz wrote:
Uncheck the "Limit Selection to One Item" and select the "Files and Folders".
That doesn't work to select multiple folders. You can only select files with this option unchecked.
11-11-2014 01:36 PM
Roll your own using a listbox. I made this reentrant VI that calls itself if only one folder is selected, otherwise it returns the selected folders. The attached VI needs a bunch of refinement (error handling, at least), but it does what I think you want.
11-12-2014 09:39 AM
I tried hacking into the core built-in function (File Dialog); I was able to set the selection mode flags to disallowed values:
When I ran it, it would actually let me select multiple files or folders, but unfortuneatly the output only returned the files I selected, not any of the folders.