Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to set up a directory which contains:

File A
File B
File C

then create a second directory that initially contains:

File D
File E

is it possible, I can modify the second directory to show:

File A
File B
File C
File D
File E

but not by copying the files, so that if they are changed in the first directory, the changes are accessible instantly in the second directory.

Additionally, when it comes to putting files there, it would be nice to have an option of always to one directory, or choose, but I suppose if necessary any new files created in the second directory would be stored in the second directory, and if the file needed to exist in the first directory as well, then it could be copied to the first directory.

Hope that makes sense

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Yes, this is possible, but not by a "directory junction". You'll need a link for each file. I.e. Dir2\File A should be a link to Dir1\File A. As a corollary, when you add new files to Dir1\ they won't automatically show up in Dir2.

share|improve this answer
    
So I would need some sort of monitor to be running that will update the second directory with junction links to the files and directories in the first directory if I wanted to do that? –  cgoddard Jan 23 '13 at 15:55
2  
Yes, but this can be done efficiently with a file system watcher. –  MSalters Jan 24 '13 at 8:14

A user-friendly way of doing this is using the Library feature in Windows.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.