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. The Lounge
  3. Win32: Mount folder into another folder

Win32: Mount folder into another folder

Scheduled Pinned Locked Moved The Lounge
comtoolsquestion
8 Posts 8 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.
  • P Offline
    P Offline
    peterchen
    wrote on last edited by
    #1

    mountvol seems to allow only mounting a drive into a directory. Is it possible to mount a directory as another directory? I have to folders d:\sourcesA and d:\sourcesB, and want to mount them alternatively as d:\sources any ideas?


    Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
    We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
    Linkify!|Fold With Us!

    E P B D R 6 Replies Last reply
    0
    • P peterchen

      mountvol seems to allow only mounting a drive into a directory. Is it possible to mount a directory as another directory? I have to folders d:\sourcesA and d:\sourcesB, and want to mount them alternatively as d:\sources any ideas?


      Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
      We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
      Linkify!|Fold With Us!

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      Use symbolic links under linux :~ ;P I've searched for something like this and I don't think it's very easy to accomplish. Ah if only something worked under Windows like they do on Linux... :sigh:


      I have no idea what I just said. But my intentions were sincere.

      1 Reply Last reply
      0
      • P peterchen

        mountvol seems to allow only mounting a drive into a directory. Is it possible to mount a directory as another directory? I have to folders d:\sourcesA and d:\sourcesB, and want to mount them alternatively as d:\sources any ideas?


        Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
        We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
        Linkify!|Fold With Us!

        P Offline
        P Offline
        Peter Somos
        wrote on last edited by
        #3

        use the linkd tool from W2K resource kit edit: http://support.microsoft.com/kb/205524[^]

        1 Reply Last reply
        0
        • P peterchen

          mountvol seems to allow only mounting a drive into a directory. Is it possible to mount a directory as another directory? I have to folders d:\sourcesA and d:\sourcesB, and want to mount them alternatively as d:\sources any ideas?


          Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
          We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
          Linkify!|Fold With Us!

          B Offline
          B Offline
          Bruce Duncan
          wrote on last edited by
          #4

          Junction[^] from System Internals can do this.

          "Walking on water and developing software from a specification are easy if both are frozen."
          - Edward V. Berard

          1 Reply Last reply
          0
          • P peterchen

            mountvol seems to allow only mounting a drive into a directory. Is it possible to mount a directory as another directory? I have to folders d:\sourcesA and d:\sourcesB, and want to mount them alternatively as d:\sources any ideas?


            Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
            We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
            Linkify!|Fold With Us!

            D Offline
            D Offline
            Daniel Grunwald
            wrote on last edited by
            #5

            If you're using Vista, use the "mklink" command line tool to create symbolic links (a new NTFS feature in Vista). On XP, use a tool that can create junctions. But remember that the XP's explorer and junctions are a dangerous combination: when deleting a junction, explorer deletes all files in the directory the junction points to! Some differences between symbolic links and junctions: Junctions point to a target directory using partition number+reference to directory index; symbolic links point to a target directory using a normal path. Only symbolic links can point to UNC paths. Junctions are can only point to directories; symbolic links are supported both for directories and files. And don't confuse symbolic links or junctions with hard links (which are for files only and are supported on XP).

            1 Reply Last reply
            0
            • P peterchen

              mountvol seems to allow only mounting a drive into a directory. Is it possible to mount a directory as another directory? I have to folders d:\sourcesA and d:\sourcesB, and want to mount them alternatively as d:\sources any ideas?


              Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
              We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
              Linkify!|Fold With Us!

              R Offline
              R Offline
              Rama Krishna Vavilala
              wrote on last edited by
              #6

              You can use the shell extension by Michael Dunn, that creates hardlinks: http://www.codeproject.com/shell/shellextguide4.asp[^]


              Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan

              1 Reply Last reply
              0
              • P peterchen

                mountvol seems to allow only mounting a drive into a directory. Is it possible to mount a directory as another directory? I have to folders d:\sourcesA and d:\sourcesB, and want to mount them alternatively as d:\sources any ideas?


                Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                Linkify!|Fold With Us!

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Not quite what you want but you could use the command line subst to map a directory onto an available drive letter, I've used this quite a bit. Elaine :rose:

                The tigress is here :-D

                D 1 Reply Last reply
                0
                • L Lost User

                  Not quite what you want but you could use the command line subst to map a directory onto an available drive letter, I've used this quite a bit. Elaine :rose:

                  The tigress is here :-D

                  D Offline
                  D Offline
                  Daniel Turini
                  wrote on last edited by
                  #8

                  Trollslayer wrote:

                  Not quite what you want but you could use the command line subst to map a directory onto an available drive letter, I've used this quite a bit.

                  Just remember that subst are per-user, while junction points are per-system. This can make all the difference if you want that an IIS application see your subst drive :)

                  From the Churchdown Parish Magazine: "Would the Congregation please note that the bowl at the back of the Church, labelled 'For The Sick,' is for monetary donations only."

                  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