How to Create a Virtual Windows Drive

↘锁芯ラ 提交于 2019-12-02 16:44:14
HyLian

As I see, there are several options to implement this.

The "native" one is creating a custom driver (.sys file) that intercepts the I/O operations. Microsoft calls it MiniFilter. This option is the toughest one but allows you full control.

The coward's ;) option is to use a existing library to do this, examples of this are Dokan, GPL (dokan-dev.net/en), Pismo, free (www.pismotechnic.com) or Callback File System (www.eldos.com).

However if you don't have Windows as main target, you can use FUSE which is a pretty good option.

If you (or someone else) still mind coding the driver itself, there are several opensource and working prototypes already:

to use the SUBST command in a script launched by your app could be an option.

You could write a Shell NameSpace Extension, allowing you to represent anything as a drive (with subfolders, files, custom menus and whatnot), but you'd have to build all functionality from scratch. The upside is there are a lot of samples on the net, like this one.

Have a look at this article. This is done using SUBST.exe present in Windows OS.

http://code-in-action.blogspot.com/2013/11/create-virtual-drive-through-command.html

Our Callback File System, as mentioned above, is a supported product with a comprehensive feature set, samples and support. We also offer free non-commercial licenses.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!