LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

restrict file dialog folder access

How do I restrict a user to a specified folder and it's files when making a file selection.

 

tks, Terry

0 Kudos
Message 1 of 4
(4,081 Views)

Browse option.  but the user can change the settings on the fly.  If you MUST restrict the user you need to code up your own "Pseudo browser"


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 4
(4,068 Views)

As Jeff notes, you can use the Browse Options to (a) restrict the choice to Files and/or Folders, New or Existing, etc., and can also set the initial folder from which the User can choose.  While you can't easily prevent him/her from going outside your boundaries, you can analyze the choice and simply reject it, saying "Try Again, and Stay In This Folder!!!".  Of course, if you do this, your User might not say "Thank You" ...

 

Bob Schor

0 Kudos
Message 3 of 4
(4,015 Views)

I've seen several examples over the years on how to do this, but I can't seem to find any of the complete ones.  Attached is one method using VIs from the LabVIEW 8.2 era, I'm sure I found the VIs somewhere on the forums but I can't find where at the moment.

 

Anyway give the main a directory and it will populate a tree.  With this you can limit the files or folders the user has access to.

Message 4 of 4
(3,977 Views)