<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: windows permissons in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702715#M802425</link>
    <description>&lt;P&gt;I had the same problem - I have a couple of related applications that need to share &amp;amp; read/write to a configuration file in [Public App Data]\MyApp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution that I found is that I had to include a file (I used a placeholder file) inside the&amp;nbsp;&lt;SPAN&gt;[Public App Data]&lt;/SPAN&gt;&lt;SPAN&gt;\MyApp in my installer and then tick the 'unlock' option on that folder. After the installation is complete, my applications can then read/write files inside the&amp;nbsp;&lt;SPAN&gt;[Public App Data]&lt;/SPAN&gt;&lt;SPAN&gt;\MyApp folder.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I think the reason for the placeholder file is that without it, the 'Unlock' setting of the folder does not seem to apply correctly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I don't think this is a problem if you use a user-specific location (such as user appdata).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2014 14:40:33 GMT</pubDate>
    <dc:creator>Sam_Sharp</dc:creator>
    <dc:date>2014-01-16T14:40:33Z</dc:date>
    <item>
      <title>windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701095#M802057</link>
      <description>&lt;P&gt;Hi I have an issue with my LV App being able to write to a directory that may be set as read only.&amp;nbsp; IS there any way to check and if so, change the permission of this directory from Labview?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:56:17 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701095#M802057</guid>
      <dc:creator>id</dc:creator>
      <dc:date>2014-01-15T16:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701131#M802065</link>
      <description>&lt;P&gt;Please go thorough the link :&amp;nbsp;&lt;A href="https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/setting-permissions.html" target="_blank" rel="noopener"&gt;https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/setting-permissions.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this might slove you problem..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jan 2026 21:59:44 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701131#M802065</guid>
      <dc:creator>Pankajusic</dc:creator>
      <dc:date>2026-01-31T21:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701133#M802066</link>
      <description>&lt;P&gt;Hello id,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe you're looking for the Get Permissions function in the Advanced File I/O palette:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LabVIEW Help: Get Permissions Function&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/get-permissions.html" target="_blank" rel="noopener"&gt;https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/get-permissions.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jan 2026 22:00:09 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701133#M802066</guid>
      <dc:creator>0utlaw</dc:creator>
      <dc:date>2026-01-31T22:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701413#M802145</link>
      <description>&lt;P&gt;Thanks, but the set permissions VI doesnt seem to work.&amp;nbsp; See attached.&amp;nbsp; After executing this code, this is what the windows dir permissions look like - they are unchanged.&amp;nbsp; Is there something else that I must do before this or something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 20:40:33 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701413#M802145</guid>
      <dc:creator>id</dc:creator>
      <dc:date>2014-01-15T20:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701507#M802175</link>
      <description>&lt;P&gt;I'm not sure if Set Permissions works recursively on every folder inside of ProgramData. &amp;nbsp;Even if it does, setting all of Program Data to be writeable by anyone is a bad idea. &amp;nbsp;At most you should be setting only the folders inside of ProgramData that you own as writeable, eg. C:\ProgramData\MyApp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since ProgramData is a system folder you may not have the permissions required to set it and everything inside to be writeable. &amp;nbsp;Try with a subfolder and see if you don't have better luck.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 21:19:39 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701507#M802175</guid>
      <dc:creator>Wart</dc:creator>
      <dc:date>2014-01-15T21:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701545#M802184</link>
      <description>&lt;P&gt;Hello id,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran a few quick tests and the function looks to be working as expected, but remember a few things:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) The set permissions function isn't recursive.&amp;nbsp; If you want to alter the permissions of all files contained in a folder you'll need to do it one at a time.&amp;nbsp; I'd be surprised if there isn't an example around that already does this, but if you need to create it yourself it should be as easy as using the recursive file list function, also available in the advanced File&amp;nbsp;Functions palette.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) The LabVIEW development environment or a LabVIEW-built executable may not have permission to modify the settings of certain files or folders depending on their security settings. Top-level OS directories and their contents are likely protected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the screenshot you provided (thanks for that, by the way!) it looks like the folder is flagged as having some read-only contents.&amp;nbsp; This is what I'd expect after setting the folder's permissions.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 21:36:46 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2701545#M802184</guid>
      <dc:creator>0utlaw</dc:creator>
      <dc:date>2014-01-15T21:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702679#M802413</link>
      <description>&lt;P&gt;Thanks I already did and it did the same - no change to the read only.&amp;nbsp;&amp;nbsp; I have program xml support files in C:\program data under its own folder because thats what the NI help desk told me to do.&amp;nbsp; When I install the program on a new PC, I need to set permissions on this folder so I can read/write to it during program operation.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:25:28 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702679#M802413</guid>
      <dc:creator>id</dc:creator>
      <dc:date>2014-01-16T14:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702685#M802416</link>
      <description>&lt;P&gt;Tom if Labview cant set the permissions of a folder, how can you create an app that has data files that are written to or read?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:27:19 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702685#M802416</guid>
      <dc:creator>id</dc:creator>
      <dc:date>2014-01-16T14:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702695#M802419</link>
      <description>&lt;P&gt;Hi id,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when it comes to Windows behaviour you should ask Microsoft and not NI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MS suggests to use UserAppData for your program settings. In this folder the current user always has write permissions! Usually it is located in "users\username\ApplicationData\Local" (or similar, don't have Win7 at hand)...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find that folder very easily:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.ni.com/t5/image/serverpage/image-id/130765iAA0095A5F49186FC/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="check.png" title="check.png" align="middle" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:37:57 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702695#M802419</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2014-01-16T14:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702715#M802425</link>
      <description>&lt;P&gt;I had the same problem - I have a couple of related applications that need to share &amp;amp; read/write to a configuration file in [Public App Data]\MyApp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution that I found is that I had to include a file (I used a placeholder file) inside the&amp;nbsp;&lt;SPAN&gt;[Public App Data]&lt;/SPAN&gt;&lt;SPAN&gt;\MyApp in my installer and then tick the 'unlock' option on that folder. After the installation is complete, my applications can then read/write files inside the&amp;nbsp;&lt;SPAN&gt;[Public App Data]&lt;/SPAN&gt;&lt;SPAN&gt;\MyApp folder.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I think the reason for the placeholder file is that without it, the 'Unlock' setting of the folder does not seem to apply correctly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I don't think this is a problem if you use a user-specific location (such as user appdata).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:40:33 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702715#M802425</guid>
      <dc:creator>Sam_Sharp</dc:creator>
      <dc:date>2014-01-16T14:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702719#M802427</link>
      <description>&lt;P&gt;How about program configuration settings where the app is installed on a single PC and tehre are multiple users like a production test facility?&amp;nbsp; The program config settings are things like if the PC has multiple monitors which VI pops up into which display type info....&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:41:09 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702719#M802427</guid>
      <dc:creator>id</dc:creator>
      <dc:date>2014-01-16T14:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702749#M802433</link>
      <description>&lt;P&gt;Hi id,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see Sams comment: he is suggesting the &lt;U&gt;&lt;STRONG&gt;Public&lt;/STRONG&gt;&lt;/U&gt;AppData folder, which is accessible for all users...&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:43:56 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702749#M802433</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2014-01-16T14:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702821#M802450</link>
      <description>&lt;P&gt;Sam what I am using is the Get System Dir.VI and selecting the Public App Data as the input which results in C:\Program Data on my machine while running the Labview Dev Environment.&amp;nbsp; My problem is the VI that I wrote when operating in the Labview Dev Environment reads/writes to the C:\Program Data folder which is read only.&amp;nbsp; The Public App Data folder for my built executable works fine as it is nested under my Apps directory&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I gather that you are saying is that this folder may not be able to have its permissions changed due to it being a system folder....so I have to change the permissions manually in the development environment if it is installed on another machine?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 15:30:02 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702821#M802450</guid>
      <dc:creator>id</dc:creator>
      <dc:date>2014-01-16T15:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: windows permissons</title>
      <link>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702919#M802471</link>
      <description>&lt;P&gt;Hi id,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To test this, I created a simple VI that tries to create/write a text file in [Public App Data] as follows:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.ni.com/t5/image/serverpage/image-id/130777i0E07F95B04D09827/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="16-01-2014 15-55-45.png" title="16-01-2014 15-55-45.png" width="752" height="126" align="center" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This VI ran without errors, there was a TestFile.txt in [Public App Data]\TestFolder. Obviously on my development machine I am running LabVIEW as an administrator so it has no problems with file permissions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the built executable, which will run on a user account without administrator permissions - I was unable to write/create the configuration file in a subfolder in [Public App Data] until I modified my installer to create the subdirectory in [Public App Data], place a dummy file inside it and then unlock the folder. This allows applications running as a user to create/modify files in that folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the same if you try to write to files inside your program's folder in [Program Files] - if you run the application as a user without 'unlocking' the subfolder in your installer you will be unable to modify files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess if you don't create an installer, you will need to modify the permissions for that folder manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As others have said - the only location that users can write to is one of the 'User' system directories (i.e. a per user configuration). If you want to have a system wide configuration then you will need to either unlock the location as part of the install process (installers have to run with elevated permissions so they can change the permissions for you as part of the process) or manually modify the permissions later as an admin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Microsofts recommended practice is to use user specific folders (i.e. [Users App Data]) for everything, but if you need to store system wide configuration (if it really is system side - rather than something that should be down to user preference) then you should use [Public App Data] but to do that you'd need to 'install' the software.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 16:17:45 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/windows-permissons/m-p/2702919#M802471</guid>
      <dc:creator>Sam_Sharp</dc:creator>
      <dc:date>2014-01-16T16:17:45Z</dc:date>
    </item>
  </channel>
</rss>

