Windows Allows the MyDocuments Folder to be pointed to ANY Folder.. For example mine points to H:\.
HOMEDRIVE, HOMEPATH, or USERPROFILE does not reflect where MyDocuments is actually pointed. The location is available through the Windows Shell API, of which there are some Scripts that can access the properties or a UDF or Plugin could be constructed to return the Many different values available. ----- Original Message ----- From: "Bob Taylor" <[EMAIL PROTECTED]> To: "RBG7-L Mailing List" <[email protected]> Sent: Thursday, February 24, 2005 8:54 AM Subject: [RBG7-L] - Re: Capturing the path of My Documents > What about capturing the values of the Windows environment variables > HOMEDRIVE, HOMEPATH, or USERPROFILE? > > To see what I mean, go to a Windows command window and run "set" > > Bob > > Jan Barley wrote: > > > Hey all! > > I read with great interest Emmitt's program to check for a Network > > folder, but I have a further challenge. Is there a way to determine > > the user's default My Documents directory? Chkfile will not check > > subdirectories, so I cannot capture the value of the full directory > > path to My Documents. Just trying to make things simpler for my users > > - having the Save to default to their Documents directory so they > > won't have to search for it, or heaven forbid, make 2 extra mouse > > clicks!!! > > Thanks for any input!!! > > > > Jan Barley >
