Accessing Files Within Program Files\Autodesk\Autodesk\ApplicationPlugins\*MyPlugin*

Accessing Files Within Program Files\Autodesk\Autodesk\ApplicationPlugins\*MyPlugin*

John.mcquaidL8BSD
Explorer Explorer
310 Views
0 Replies
Message 1 of 1

Accessing Files Within Program Files\Autodesk\Autodesk\ApplicationPlugins\*MyPlugin*

John.mcquaidL8BSD
Explorer
Explorer

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:

 

AcadAccessError.png

 

 

 

 

 

 

 

 

 

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?

0 Likes
311 Views
0 Replies
Replies (0)