finding user's "My Documents" folder

M

Matt

Howdy

I'm trying to write some code that will save files in the
background to the user's My documents folder. I'm new to
the whole development arena, so I'm not sure where to
begin looking for the user's folder.

I know I can use %TEMP% to find the pc's temp folder. Is
there something similar for the user's folder?

Thanks
Matt
 
L

LiquidJ

Check out SHGetFolderPath() in MSDN. Passing CSIDL_PERSONAL as the value of
nFolder will return you the path to the currently logged on user's "My
Documents" folder.


{L}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top