Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-02 Thread Steve Johnson
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

Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-02 Thread Steve Johnson
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 =

Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-02 Thread Franklin Gray
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

Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-02 Thread Dominick Baier
. 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

Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-02 Thread Franklin Gray
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

Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-01 Thread Thomas Freudenberg
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

Re: [ADVANCED-DOTNET] Windows Service execution path

2006-03-01 Thread Steve Johnson
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