LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open File dialog user can delete and rename files.

Does any one know if there is a way to prevent a user from deleting and renaming files by right clicking on them in an Open File dialog box?
0 Kudos
Message 1 of 8
(4,184 Views)
Have you tried unchecking "Use Native FIle Dialogs" in the Environment Options.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 8
(4,179 Views)
Yes.  Thank you for your relpy.  I just found that option about a minute ago.  Unfortunately my customer is particulal about the look of the application, and I haven't found any ways of altering the LabView dialog box.
0 Kudos
Message 3 of 8
(4,178 Views)
Well, the problem is that this isn't a LV dialog box. It's the standard Windows file dialog box and this is the way they work in Windows.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 8
(4,167 Views)
As mike pointed out, you can't prevent it.  But you can monitor a dir, if anything changed, you can change it back.
 
 
George Zou
 
George Zou
0 Kudos
Message 5 of 8
(4,162 Views)
If the user insists on it, you can also try recreating the look of that dialog by getting a list of the files and using a dialog listbox or an ActiveX control, but I think it would be far too much work to get it right. I suggest you simply create your own version which doesn't look exactly like that dialog, but is nicer than the LV dialog.

___________________
Try to take over the world!
0 Kudos
Message 6 of 8
(4,156 Views)
I think the best solution would be to create a User Account for your user on that operating system that doesn't have the privileges to rename or delete files in certain protected directories.

I don't know what ramifications that would have for your application, seeing as it would probably run with the same privileges as the user has...
Jarrod S.
National Instruments
0 Kudos
Message 7 of 8
(4,123 Views)
If the above suggestions aren't appropriate, you can always try a different control: http://www.xtras.net/products/dialogworkshopnet/
0 Kudos
Message 8 of 8
(4,096 Views)