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
 
Back
Top