Ok, I posed this question before, but instead of leading me to information
on
how to create a RamDrive, everyone was more concerned with how to address
my
other questions.
My main question is: How can I create a RamDrive? Microsoft does this
whenever it is installing Windows, so hopefully everyone knows what I'm
talking about. I don't need something as low level as what Microsoft uses,
but I'd like to know how to create a virtual drive in C#.
Is it possible? Who cares why - can it be done?
I'm not aware of any built-in way to do this and seriously doubt there is
one (you never know though). Normally a driver is required to pull this off
and even finding code for that may prove difficult. Doing it on-the-fly may
be even harder if that's what you really want. Otherwise it's better to find
an available driver rather than rolling your own (I have an old FAT-based
one I still use). Note that MSFT used to provide sample driver code on how
to build one yourself. A quick look and the only link I can now find is
this:
http://support.microsoft.com/default...;en-us;Q257405
I'm not sure if that's the same one I once played with which was limited to
64 MB at the time (this was years ago) but this is just an old and
non-portable (probably FAT) sample only. It's to get you started but heed
the caveats. I doubt you'll want to venture down this avenue on your own but
it might be worth exploring. You can always open an incident with MSFT and
they may point you to a much easier and modern way (assuming you really need
it and have no other options).