Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SHCreateDirectory()

SHCreateDirectory()

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Monisankar
    wrote on last edited by
    #1

    How SHCreateDirectory() can be used to create nested directories?

    T M 2 Replies Last reply
    0
    • M Monisankar

      How SHCreateDirectory() can be used to create nested directories?

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      Here is Example. let you want to Create a Directory "cp" in C:\ So call of funtion would be like this

      CString strDir="c:\\cp";
      if(SHCreateDirectoryEx(this->m_hWnd,strDir,NULL);

      Now let you want to create a user Directory under cp just after above code

      strDir+="\\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
      1 Reply Last reply
      0
      • M Monisankar

        How SHCreateDirectory() can be used to create nested directories?

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups