TheSwamp

Code Red => .NET => Topic started by: Viktor on February 01, 2010, 01:56:34 PM

Title: Where to save local resources?
Post by: Viktor on February 01, 2010, 01:56:34 PM
I've asked this on the adn site, but didn't get a very clear answer. In our situation, we have many computers internal (on our network) and many external (outside of network) that utilize our tools. For years now, we've been using lisp on startup of autocad to copy all resources into c:\windows\temp folder.

Later I found out that it's not a good idea to use that folder, and I should be using roamablerootprefix and have another folder there. Ok, so I changed it all to use that folder. Now I'm finding out that all .net dll's should be inside of AutoCad xxxx of program files folder, well, that's not going to happen for many of them. So I reverted back to c:\windows\temp\myownfolder. Now with windows 7, that folder requires higher permission levels, which is another roadblock.

So where do I keep all the resources? So far I have the following resources:

dwt files
xml files
xls files
dll files
txt files

entire folder is only about 2mb.

Thanks,
Viktor.
Title: Re: Where to save local resources?
Post by: MickD on February 01, 2010, 04:05:50 PM
I just keep my tools in there own folder on C:\ drive - eg. C:\MyApp\....etc.
This way I can always find my resources as they are relative to the loaded assembly/s
Title: Re: Where to save local resources?
Post by: It's Alive! on February 01, 2010, 05:20:52 PM
I would probably use something like
C:\Program Files\Common Files\Yourfolder shared
Title: Re: Where to save local resources?
Post by: Viktor on February 01, 2010, 08:30:08 PM
Thanks for the reply guys. Gives me something to think about.
Title: Re: Where to save local resources?
Post by: Glenn R on February 04, 2010, 04:19:43 PM
%ProgramFiles%\CompanyName\AppName would be a good start for installation...if you're talking about program data files, that's another story.
Title: Re: Where to save local resources?
Post by: Draftek on February 05, 2010, 08:00:50 AM
I deploy and support several hundred in-house and out of house customers with various applications - autocad related and other.

I use a combination of Daniel's and Glenn's suggestion.

Been working since 2000.
Take some time and develop a plan and test test test....