Accessing Files Within Program Files\Autodesk\Autodesk\ApplicationPlugins\*MyPlugin*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So, originally, I had a txt file that would be created and stored in the users Favorites folder. I didn't know how to access any files within Program Files due to the nature of the directory requiring administrator rights. I am very displeased with the users settings being stored separate from all other plugin files so I am trying to find out how to keep everything together. I have been looking for answers/trying all kind of options for a long time now and I have not found anything that works. One of the posts I ran into said that adding:
<PrincipalPermission(SecurityAction.Demand, Role:="BUILTIN\Administrators")>
to the method should provide administrator rights, but I was still getting an error while attempting to accessing the txt document. The error reads:
I really feel like this is on to something and that maybe I needed to add something to it to get it to work? I don't don't know. Anyway, does know how I create/delete/write to text files within admin folders?