prabhakaran Posted July 30, 2014 Report Share Posted July 30, 2014 (edited) Hi all, I am working on a project in which I need to create files dynamically, say text files for each measurement. As these files are created dynamically, these are 'owned' by created user. From the same user I can read, write these files. But if I try to access these files from other user accounts, those accounts have only read permissions over the dynamically created files. But I need Write permissions. Any suggestions to help achieve this functionality is appreciated. P.S.:This problem doesn't occur in windows 7. Thanks in advance, Prabhakaran. Main.vi Edited July 30, 2014 by prabhakaran Quote Link to comment
JKSH Posted July 30, 2014 Report Share Posted July 30, 2014 (edited) Hi, See http://zone.ni.com/reference/en-XX/help/371361K-01/glang/setting_permissions/ You set the permissions to 200 (decimal) = 110 010 000 (binary). Try setting it to 110 110 110 (binary) = 438 (decimal) to give everyone read/write permissions? (If that doesn't work, you need to find out how Windows Server manages file permissions) Edited July 30, 2014 by JKSH Quote Link to comment
hooovahh Posted July 30, 2014 Report Share Posted July 30, 2014 This may not be a file properties issue, but a Windows permission issue. If I am not an administrator I don't generally have access to write files in the Program Files directory. One way to change this is to assign permission using the command line, or going to the folder properties and go to the Security tab. Do this with the command line using ICACLS http://stackoverflow.com/questions/2928738/how-to-grant-permission-to-users-for-a-directory-using-command-line-in-windows http://technet.microsoft.com/en-us/library/cc753525.aspx Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.