Need a call to get the folder "My Documents"

  • Thread starter Thread starter Franky
  • Start date Start date
F

Franky

I know about GetModuleFileName but what I need is a similar call to get the
folder "My Documents"

Is there such a thing?





Thanks
 
Franky said:
I know about GetModuleFileName but what I need is a similar l to get the
folder "My Documents"

Is there such a thing?

Yes, check the docs for

ShGetFolderPath()

passing it the CSIDL_PERSONAL

flag.

Regards,
Will
 
Or, if you're using the .NET framework, call

System::Environment::GetFolderPath(System::Environment::SpecialFolder::MyDocuments)

Mick
 
I should have been explicit. I forget that C++ can be managed. My app is
not.

Thanks
 

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

Back
Top