A little more research turned up the SHGetSpecialFolderLocation API call
from the Shell32 library.  You can verify this on the MSDN web site in their
reference area.  I would highly recommend getting this folder location
through the API.  Microsoft has many ways of punishing those who circumvent
the "Suggested way of doing things."

jpt

> -----Original Message-----
> From: Tillman, James 
> Sent: Thursday, May 30, 2002 11:52 AM
> To: 'Thomas R Wyant_III'; [EMAIL PROTECTED]
> Cc: Perl-Win32-Users (E-mail)
> Subject: RE: Determining Default 'My Documents' folder path
> 
> 
> There's probably an API call you can make somehow, perhaps to 
> shell32.dll.
> Win32::API might be the ticket to a solution that doesn't 
> require use of env
> variables.
> 
> jpt
> 
> > -----Original Message-----
> > From: Thomas R Wyant_III [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 30, 2002 10:41 AM
> > To: [EMAIL PROTECTED]
> > Cc: Perl-Win32-Users (E-mail)
> > Subject: Re: Determining Default 'My Documents' folder path
> > 
> > 
> > 
> > Adam,
> > 
> > Under Windows 2000 (and possibly other Win* operating systems), see
> > $ENV{USERPROFILE}. If you need a complete pathname:
> > 
> > C:\>perl -MFile::Spec -e "print File::Spec->catfile 
> > ($ENV{USERPROFILE}, 'My Documents')"
> > C:\Documents and Settings\wyant\My Documents
> > 
> > Beware of the space if you intend to pass this to the glob 
> > function under
> > Windows.
> > 
> > Tom Wyant
> > 
> > 
> > 
> > 
> > "Adam Frielink" <[EMAIL PROTECTED]>@listserv.ActiveState.com on
> > 05/30/2002 10:24:40 AM
> > 
> > Sent by:    [EMAIL PROTECTED]
> > 
> > 
> > To:    "Perl-Win32-Users \(E-mail\)"
> >        <[EMAIL PROTECTED]>
> > cc:
> > Subject:    Determining Default 'My Documents' folder path
> > 
> > 
> > I have been looking for a way to determine the path of the 
> > 'My Documents'
> > folder for a PC.  I assume this is a registry setting.  I did 
> > a search for
> > this through MY registry and the only potential references I 
> > can find refer
> > to a shell32.dll,9227.  I don't have a clue as to what that means.
> > 
> > Is there any help someone can provide?
> > 
> > _______________________________________________
> > Perl-Win32-Users mailing list
> > [EMAIL PROTECTED]
> > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> > 
> > 
> > 
> > _______________________________________________
> > Perl-Win32-Users mailing list
> > [EMAIL PROTECTED]
> > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> > 
> _______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to