how to map a software as a Drive?
I am trying to create a software like Ibackup.com. However, I am not sure how to make the software so that it'll map as a local Harddrive. And i am not sure where to start researching on this. Someone开发者_如何学JAVA please give me some pointers.
I can point you to Dokan ( a user filesystem for windows like FUSE on linux), You install the driver then write the appropriate software for replying on IO request.
On a more complex answer you have to work with the NT DDK to write a driver that would be your software for being a filesystem (look at IFS: installable file system ), note that it is very complicated to work with (mainly because a crash of your software mean a BSOD ), and you would probably like some more higher level software like Dokan that would help you in that regard.
You need to write a device driver implementing an Installable Filesystem (IFS).
I personally haven't done this but here's a piece of software I know that mounts Linux (ext2/3/4) filesystem on Windows: Ext2IFS.
And here's the SDK from Microsoft: IFS Kit
Take a look at the Subst command. I suggest you invoke it externally instead of simulating what it does, simply because of all the things that can go wrong.
(Side note: The correct term is a volume, not a drive.)
Just as a reference: virtual drives can be created using our Callback File System product, which is a supported, documented and maintained solution.
精彩评论