LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hide or block access to C:\ in the standard File Dialog UI

Solved!
Go to solution

Hi,

I would like to launch a usual "File Dialog" interface (the typical Windows File Explorer) to let the user choose the desired path and filename to save some data. But I would like to block or hide C:\ so that the user cannot save the file in this partition but only the D:\ Data or other external driver connected to the PC.

 

Can anybody help me? I don't know if it's possibile with the native Windows File Explorer.

 

Best regards,

Marco.

0 Kudos
Message 1 of 3
(2,349 Views)
Solution
Accepted by topic author bruniii

Check the path that the user picks.  If it is in the c: drive, than put up a dialog box warning them, and loop back around to have them choose again.

0 Kudos
Message 2 of 3
(2,343 Views)

I think RavensFan is right that Windows will "helpfully" show you everything.  However, if you are using the File Dialog Express VI, you can specify a Start Path of E:, which starts them off in the right place.  Now, if you implement RavensFan's suggestion that you check and "reject, try again" if they choose C:, this will reinforce that they are "starting somewhere else", like it or not.

 

Bob Schor

0 Kudos
Message 3 of 3
(2,326 Views)