LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to set permissions for folder?

Dear all,

How can iset permissions for a particular folder?

I am creating new folders for new users  who access the program. 

Is there any way yo set permissions so that no one is able to edit the name of the folder ?

 

Thanks,

Ritesh

0 Kudos
Message 1 of 2
(2,676 Views)

Hi Ritesh,

 

Thanks for the post and I hope your well today.

 

You can programmatically change the Read Only and Hidden Status of a file in labview using the DOS prompt from LabVIEW - called System.Execvi.

 

Here are some links regarding the DOS commands you can use,
http://www.ss64.com/nt/subinacl.html
http://www.ss64.com/nt/cacls.html 

 

So I beleive you could find a DOS command which could alter the editting properties of the name..

 

Another way to prevent the user altering the file would be to change the user permission's in windows.. but it could affected the code and most IT departments would not allow this.

 

Hope this helps,

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 2
(2,668 Views)