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. Delete directory

Delete directory

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 4 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.
  • S Offline
    S Offline
    see me
    wrote on last edited by
    #1

    How can i delete a directory...?????:doh: "Dream bigger...Do bigger...Expect smaller" aji

    A _ 2 Replies Last reply
    0
    • S see me

      How can i delete a directory...?????:doh: "Dream bigger...Do bigger...Expect smaller" aji

      A Offline
      A Offline
      Aqueel
      wrote on last edited by
      #2

      use system(...) and run dos command rmdir using system(...) Good luck We Believe in Excellence www.aqueelmirza.cjb.net

      1 Reply Last reply
      0
      • S see me

        How can i delete a directory...?????:doh: "Dream bigger...Do bigger...Expect smaller" aji

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        RemoveDirectory() Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        S 1 Reply Last reply
        0
        • _ _AnsHUMAN_

          RemoveDirectory() Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

          S Offline
          S Offline
          see me
          wrote on last edited by
          #4

          I think this will work only if the directory is empty. "Dream bigger...Do bigger...Expect smaller" aji

          H _ 2 Replies Last reply
          0
          • S see me

            I think this will work only if the directory is empty. "Dream bigger...Do bigger...Expect smaller" aji

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            see _rmdir function_**


            **_

            whitesky


            1 Reply Last reply
            0
            • S see me

              I think this will work only if the directory is empty. "Dream bigger...Do bigger...Expect smaller" aji

              _ Offline
              _ Offline
              _AnsHUMAN_
              wrote on last edited by
              #6

              Yes this works only in case when the directory is empty. You will have to use the SHFileOperation which deletes the files recursively in a folder to first empty the directory and then Remove it. Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

              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