How to create a RamDrive?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?anAybXNmdA==?=

    How to create a RamDrive?

    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?
  • Ignacio Machin ( .NET/ C# MVP )

    #2
    Re: How to create a RamDrive?

    On Jul 25, 9:07 am, jp2msft <jp2m...@discus sions.microsoft .comwrote:
    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 addressmy
    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?
    Hi,

    You will have to P/invoke. Find out how to do it in unmanaged code and
    then P/invoke those functions from C#

    Comment

    • PvdG42

      #3
      Re: How to create a RamDrive?


      "jp2msft" <jp2msft@discus sions.microsoft .comwrote in message
      news:F2FBE5A4-2AAC-4BCD-90FB-5E23EDD9A7C5@mi crosoft.com...
      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?
      Probably nobody here in this C# (C Sharp) programming group cares. So,
      here's how to find an appropriate Windows group to post in.

      As you appear to be using a web interface, start here to find an appropriate
      group:



      Click the + beside your language. then scroll down to Windows. In Windows,
      open the category for your version of Windows, then find a group there to
      post in.


      Comment

      • Larry Smith

        #4
        Re: How to create a RamDrive?

        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:



        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).


        Comment

        • =?Utf-8?B?anAybXNmdA==?=

          #5
          Re: How to create a RamDrive?

          Thanks Mr. Smith! That was the kind of info I was looking for.

          "Larry Smith" wrote:
          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:
          >

          >
          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).
          >
          >
          >

          Comment

          • =?Utf-8?B?anAybXNmdA==?=

            #6
            Re: How to create a RamDrive?

            "PvdG42" wrote:
            As you appear to be using a web interface...
            How else can I access this newsgroup? We do not have Outlook Express here
            (corporate policy).

            Comment

            • Peter Morris

              #7
              Re: How to create a RamDrive?

              What about downloading an existing one, such as

              (first one I found)

              and just installing it on the server machine? Why go through the trouble of
              mounting/unmounting at runtime (which with multiple instances running could
              be a big problem) when you can just install it and change the config of your
              BAT files (or whatever they are) to output to a different path?

              Pete

              Comment

              • Ignacio Machin ( .NET/ C# MVP )

                #8
                Re: How to create a RamDrive?

                On Jul 25, 10:51 am, jp2msft <jp2m...@discus sions.microsoft .com>
                wrote:
                "PvdG42" wrote:
                As you appear to be using a web interface...
                >
                How else can I access this newsgroup? We do not have Outlook Express here
                (corporate policy).
                I use google groups, a lousy interface but is better than nothing :)

                Comment

                Working...