취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

select multiple files and folders

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.

0 포인트
1/16 메시지
9,535 조회수

When you drop the file dialog.vi in the BD a configuration menu opensand you can uncheck Limit selection to single item and you can select File or folder.

 

Ben64

 

EDIT: You're right, when we uncheck Limit selection it greys out the selection menu. Maybe you can use the Recursive File List.vi.

 

File Dialog.png

0 포인트
2/16 메시지
9,526 조회수

But I wan to select *multiple* files and folders.

0 포인트
3/16 메시지
9,523 조회수

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.

aputman
0 포인트
4/16 메시지
9,511 조회수

Correction:  It only returns files.  My bad.

aputman
0 포인트
5/16 메시지
9,506 조회수

@LVCoder wrote:

But I wan to select *multiple* files and folders.


Uncheck the "Limit Selection to One Item" and select the "Files and Folders".



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 포인트
6/16 메시지
9,482 조회수

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"

0 포인트
7/16 메시지
9,471 조회수

@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.

aputman
0 포인트
8/16 메시지
9,470 조회수

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.

 

Example_VI_BD.png

 

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

9/16 메시지
9,457 조회수

I tried hacking into the core built-in function (File Dialog);  I was able to set the selection mode flags to disallowed values:

selection mode.png

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.

 

"If you weren't supposed to push it, it wouldn't be a button."
0 포인트
10/16 메시지
9,419 조회수