LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

New Folder Permissions

When I programmatically create a New Folder the properties on that folder are automatically set to Read Only. (This is LabView 6.1). I need to unset this paramater so that the folder can be deleted, programmatically, if needed. I've tried experimenting with the permissions parameter in NewFolder but no matter what I do the folder is created as Read Only. Is there anyway out of this?
0 Kudos
Message 1 of 4
(2,904 Views)
Permissions are very OS dependent what OS are you using?
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 4
(2,895 Views)
Win2000 or XP
0 Kudos
Message 3 of 4
(2,892 Views)
The permission input is made up of 9 bits of an integer. The easiest way to control this is to change the radix of the control or constant you use and change it to binary. Then, you have nine 0 or 1 digits which you need to set. I don't remember their details at the moment (I think they are read, write and execute for three different levels), but it should be documented in the help. I think nine 1's (511) should do what you want, but you should note that in any case LabVIEW sometimes holds an open reference to a folder you used and doesn't release it until LabVIEW is closed.

___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(2,872 Views)