I have a weird requirement.
I have to map a folder as a Virtual Drive in My Computer with a custom drive icon on it. Also the mapped virtual drive should be of predefined limited size (say XX GB).
I know and mapped a folder as a virtual drive in my computer but I am not able to limit the size of the drive as it is a kind of Shortcut to the folder and also we can not limit a folder to a specific size.
While searching on the topic, I came across IsolatedStorage which is not what I needed. I also found DefineDosDevice(int flags, string devname, string path) in kernel32.dll through which I am able to map a folder to my computer but not able to achieve other functionality.
Is it possible to achieve what I am looking for?