> On 12/7/05, Paul Hoffman <[EMAIL PROTECTED]> wrote:
> > Greetings. I'm assuming I'm just missing something obvious here, but
> > how do I find the current user's "home" directory (C:\Documents and
> > Settings\<user>)? I didn't see it in the Win32 module, but I could
> > have missed it.
> >
> > --Paul Hoffman
> >
>
> I don't think Windows knows what $HOME (or rather, %HOME%) is. At
> least NT and 2000 don't. However %ENV has some useful hints - in
> particular, $ENV{'USERPROFILE'} looks reliable in my limited testing.
D'oh! make that $ENV{'HOMEPATH'}
--
jpg
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs