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. how to change the location of a directory

how to change the location of a directory

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
7 Posts 5 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.
  • R Offline
    R Offline
    rajneshmalik
    wrote on last edited by
    #1

    hi to all i created a directory and want to change the location of that directory on a button click how is this possible plz reply soon

    S N H 3 Replies Last reply
    0
    • R rajneshmalik

      hi to all i created a directory and want to change the location of that directory on a button click how is this possible plz reply soon

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      You can use MoveFile API[^]

      -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

      My blog - Sharing My Thoughts, An Article - Understanding Statepattern

      R 1 Reply Last reply
      0
      • R rajneshmalik

        hi to all i created a directory and want to change the location of that directory on a button click how is this possible plz reply soon

        N Offline
        N Offline
        Nishad S
        wrote on last edited by
        #3

        See SHFileOperation

        - NS - [ODBaseBtn]

        1 Reply Last reply
        0
        • R rajneshmalik

          hi to all i created a directory and want to change the location of that directory on a button click how is this possible plz reply soon

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

          Do you need to SetCurrentDirectory?

          1 Reply Last reply
          0
          • S Sarath C

            You can use MoveFile API[^]

            -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

            My blog - Sharing My Thoughts, An Article - Understanding Statepattern

            R Offline
            R Offline
            rajneshmalik
            wrote on last edited by
            #5

            first of all thank you for reply.My actual problem to moving directory, I am able to move file but how can i move directory Plz reply

            CPalliniC 1 Reply Last reply
            0
            • R rajneshmalik

              first of all thank you for reply.My actual problem to moving directory, I am able to move file but how can i move directory Plz reply

              CPalliniC Online
              CPalliniC Online
              CPallini
              wrote on last edited by
              #6

              Do you read the documentation link? It states: Moves an existing file or a directory, including its children. :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              [my articles]

              In testa che avete, signor di Ceprano?

              R 1 Reply Last reply
              0
              • CPalliniC CPallini

                Do you read the documentation link? It states: Moves an existing file or a directory, including its children. :)

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                [my articles]

                R Offline
                R Offline
                rajneshmalik
                wrote on last edited by
                #7

                ok thank you i have done it

                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