开发者

how to create a directory that virtually has the contents of 2 other directories

开发者 https://www.devze.com 2023-03-08 06:09 出处:网络
Is there a way in Windows 7 to create a directory that has as its virtual contents all the files and folders from 2 other actual directories?

Is there a way in Windows 7 to create a directory that has as its virtual contents all the files and folders from 2 other actual directories?

I'm hoping I can define a single dir that reflects the contents of 2 other dirs via symblinks or so开发者_开发知识库mething without having to copy files.

*edit: I need to be able to specify the combining dir as a filepath. Looks like using a library doesn't let me do this.

c:\actualdir1\ a,b

c:\actualdir2\ c,d

c:\virtualdir\ a,b,c,d

thanks


Seems like libraries would be perfect for this. You can create a library and add folders to it from code, then use the library almost anywhere you would use a folder. You don't mention what language you want to use - for managed code the Windows API Code Pack has some wrappers for the shell stuff, and from C++ you can use shell APIs.

(If you're asking as a user then the answer is still libraries, but the question is offtopic and belongs on SuperUser.)


No, I don't think this is possible without writing your own Shell Extension. However, depending on what you are looking for, perhaps using Windows 7 Libraries would do the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号