I need to share configuration data via  configuration file, folders
containing such things as log files between a number of applications.

I need these to be accessible (read and write) for different users on the
same machine.

 

The use of application specific isolated storage does not fit as this is
for a single application. I need to update the same log file by different
applications (i.e. one that is manually invoked and by another one that is
activated by the Task Scheduler).

 

I have been creating a folder in the public folder (C:\users\public) in
windows 7.

This works ok but there does not seem to be a special folder enumeration to
define this.

 

I am wondering if the folder defined by
Environment.SpecialFolder.CommonApplicationData would be better.

 

I am targeting .NET 4.0 but my software may have to run on other platforms
namely XP Pro SP3 (I have been told that one install .NET 4.0 on this),
Vista, Windows7, Server 2008 and Server 2008 R2.

 

I need to set up sub folders and have a configuration file set up by an
installer (created using InstallShield that I have just downloaded) that are
accessible by all my programs. These should also be visible to the user so
not some really weird hidden folder as they may have to examine and e-mail
me logs.

 

I don't care where the folder actually exists (can be different for XP,
Vista and Windows 8) as long as its accessible and can be detected
programmatically.

 

I am not expecting that my default  folders be network accessible but this
might be a nice option.

 

Should I stick the public folder or is the CommonApplicationData folder a
better location.?

 

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285
Mobile: 0414 240 307 
E-Mail : [email protected]; [email protected]
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.

 

 

Reply via email to