12-09-2008 04:32 AM
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
12-09-2008 05:16 AM
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,