SHCreateDirectory()
-
How SHCreateDirectory() can be used to create nested directories?
-
How SHCreateDirectory() can be used to create nested directories?
Here is Example. let you want to Create a Directory
"cp"
inC:\
So call of funtion would be like thisCString
strDir
="c:\\cp";
if(SHCreateDirectoryEx
(this->m_hWnd,strDir,NULL);Now let you want to create a
user
Directory undercp
just after above codestrDir+="\\user";
if(
SHCreateDirectoryEx
(this->m_hWnd,strDir,NULL);Now third and last Example,create a Monishanker directory in USER directory
strDir+="\\monishanker";
if(
SHCreateDirectoryEx
(this->m_hWnd,strDir,NULL);
"I Think this Will Help"
visit me at http://www.thisisalok.tk
-
How SHCreateDirectory() can be used to create nested directories?
From the docs:
This function creates a file system folder whose fully qualified path is given by pszPath. If one or more of the intermediate folders do not exist, they will be created as well.
So you don't have to do anything special. --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb Strange things are afoot at the U+004B U+20DD