[Mono-list] Re: How to get user's HOME directory

Simon Waite simon@psionics.demon.co.uk
Fri, 4 Apr 2003 12:43:49 +0100


----- Original Message -----
From: "Stefan Saring" <stefan.saring@epost.de>
To: <simon@psionics.demon.co.uk>
Cc: <mono-list@lists.ximian.com>
Sent: Friday, April 04, 2003 8:50 AM
Subject: How to get user's HOME directory


> Hi Simon,
>
> I've just entered the "set" command on my Win2k box (SP3, german). The
> variable HOME does not exists, but USERPROFILE does.
> Could it be, that HOME was set by you or some application (e.g. CygWin)
> ?

That is a possibility as I've a number of unix-compatability tools installed
here.

In that case I would suggest you use USERPROFILE

> Isn't there any other (proper) way to get the user's home directory with
> mono ?

I'm sure there is a way to access the home directory via the registry.
I don't know if you can access through mono.


-Simon