On 3/2/06, Franklin Gray <[EMAIL PROTECTED]> wrote:
>
> How do I find this current user profile location for a windows service?
> I've been searching all over and can't find anything.
>
More specifically, use the Environment.SpecialFolder.ApplicationData or
.PersonalFolders, as appropriate. Most
On 3/2/06, Franklin Gray <[EMAIL PROTECTED]> wrote:
>
> How do I find this current user profile location for a windows service?
> I've been searching all over and can't find anything.
>
Call the Environment.SpecialFolder property and use the value as part of
your filename.
--
Steve Johnson
=
Thanksthat did it.
===
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
. März 2006 17:49
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] Windows Service execution path
How do I find this current user profile location for a windows service?
I've been searching all over and can't find anything.
>Unfortunately, you won't eve
How do I find this current user profile location for a windows service?
I've been searching all over and can't find anything.
>Unfortunately, you won't even be able to write there. Services always load
>a profile, so you can use a CurrentUser profile location to write your
file.
>
>--
>Steve Joh
Applications are normally installed to %ProgramFiles%, where normal
users do _not_ have write permissions. How about %TEMP%?
Regards,
Thomas
On 3/1/06, Franklin Gray <[EMAIL PROTECTED]> wrote:
> I have a service that needs to write a file to disk and then FTP that
> file. I assume the only place
On 3/1/06, Franklin Gray <[EMAIL PROTECTED]> wrote:
>
> I have a service that needs to write a file to disk and then FTP that
> file. I assume the only place a service under normal rights will have
> write access is the directory it runs in. How can I get that path? IE...a
> winform application i