[Mono-list] How to get user's HOME directory
Simon Waite
simon@psionics.demon.co.uk
Fri, 4 Apr 2003 03:00:38 +0100
marcus:
Lo marcus! Long time no speak!
Stefan:
Typing set at the command prompt will give you something like:
HOME=%USERPROFILE%
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\simon
USERDOMAIN=LAN
USERNAME=simon
USERPROFILE=C:\Documents and Settings\simon
If you're not using NT/2K/XP all bets are off. Win9x/ME don't have the
concept
of $HOME
However, YMMV.
Right 3am, time for bed :-)
nn
-Simon
----- Original Message -----
From: "Marcus" <mathpup@mylinuxisp.com>
To: "Stefan Saring" <stefan.saring@epost.de>
Cc: <mono-list@lists.ximian.com>
Sent: Friday, April 04, 2003 2:03 AM
Subject: Re: [Mono-list] How to get user's HOME directory
> On Thursday 03 April 2003 06:55 am, Stefan Saring wrote:
>
> > is there any way to get the name of the user's HOME directory with mono
> > ? (something like System.Environment.CurrentDirectory ...)
> > I know that I can use System.Environment.GetEnvironmentVariable("HOME"),
> > but this might only work on Unix systems.
>
> Do Windoze platforms have the concept of a "home directory"?
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list