473,385 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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?
Jul 25 '08 #1
7 2325
On Jul 25, 9:07*am, jp2msft <jp2m...@discussions.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#
Jul 25 '08 #2

"jp2msft" <jp*****@discussions.microsoft.comwrote in message
news:F2**********************************@microsof t.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:

http://www.microsoft.com/communities...s/default.aspx

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.
Jul 25 '08 #3
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).
Jul 25 '08 #4
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:

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).
Jul 25 '08 #5
"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).
Jul 25 '08 #6
What about downloading an existing one, such as
http://www.codeguru.com/cpp/w-p/syst...cle.php/c5789/
(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

Jul 25 '08 #7
On Jul 25, 10:51*am, jp2msft <jp2m...@discussions.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 :)
Jul 25 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
10
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
9
by: Peter | last post by:
Hello£¬everyone, My program will collect a testing machine's data ,save the data and deal with the data everyday. I want to use vb.net to create database, add and delete tables or modify the...
37
by: Steven Bethard | last post by:
The PEP below should be mostly self explanatory. I'll try to keep the most updated versions available at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
18
by: Steven Bethard | last post by:
I've updated the PEP based on a number of comments on comp.lang.python. The most updated versions are still at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
5
by: Michael | last post by:
Hello, I've created an ASP web page where users in our organization can create Active Directory computer accounts. The web page is running on a Server 2003 SP1 IIS 6 installation. The...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
3
by: nsc | last post by:
Hi I am trying to read a bunch of files from my dos formated ramdrive on a board and then transfer them through ftp on a remote site. The problem I am facing is that the read call to the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.