Ok thanks

 

Regards Peter

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Preet Sangha
Sent: Friday, 24 June 2011 10:30 AM
To: ozDotNet
Subject: Re: Folder to share and update configuration data and sub folders

 

I have a sample on my blog

 

http://preetsangha.blogspot.com/2008/06/getting-round-visual-studio-2008-mst
est.html

 

 

On 22 June 2011 21:41, Peter Maddin <[email protected]> wrote:

Thanks

 

Symbolic Link?

Reminds me of my Unix days (a long time ago).

 

How do you do that in Windows and can you do that programmatically?

 

Regards Peter

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Preet Sangha
Sent: Wednesday, 22 June 2011 4:50 PM
To: ozDotNet
Subject: Re: Folder to share and update configuration data and sub folders

 

why not create a symbolic link under the users' documents folder? Then it
can point to a defined location such as c:\MyAppSuite\Shared

On 22 June 2011 20:26, Peter Maddin <[email protected]> wrote:

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.

 

 




-- 
regards,
Preet, Overlooking the Ocean, Auckland




-- 
regards,
Preet, Overlooking the Ocean, Auckland

Reply via email to