Solved

How do you simulate a CD drive?

Posted on 1998-11-30
11
472 Views
Last Modified: 2006-11-17
How do you simulate a CD drive?  I need to make a program think that the cd is a folder on my c drive. (no, I'm not pirating)
0
Comment
Question by:blckherald
11 Comments
 
LVL 1

Expert Comment

by:wizard2072098
ID: 1447531
I don't believe that is possible, since the CD is an actual device type that comes through the ASPI. It's not a mappable mass storage type. That's kind of like making your mouse simulate being a monitor. They're two different device classes.

I may be wrong, but I can't think of a way it would even be possible.

Matter of fact, it may be easier to make your CD act like a hard drive folder than it will be to make your hard drive folder act like a CD.
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1447532
Are you trying to make a CD appear as a dir on a HD or the contents of a dir on a HD act like a CD?

The old DOS SUBST can convert a drive\path into a drive letter. If you need the CD on the HD copy the data files.

M

0
 

Author Comment

by:blckherald
ID: 1447533
Sorry Mark, but I need Windows 98 to recognize the folder as an acual drive.  I'd offer way, way, more points, but I don't have any.
I think it would take a significant program to do this.  I've been poking around in APIs, but I don't see anything.  Anybody else?
0
 

Author Comment

by:blckherald
ID: 1447534
Sorry Mark, but I need Windows 98 to recognize the folder as an acual drive.  I'd offer way, way, more points, but I don't have any.
I think it would take a significant program to do this.  I've been poking around in APIs, but I don't see anything.  Anybody else?
0
 

Author Comment

by:blckherald
ID: 1447535
Sorry Mark, but I need Windows 98 to recognize the folder as an acual cd drive.  I'd offer way, way, more points, but I don't have any.
I think it would take a significant program to do this.  I've been poking around in APIs, but I don't see anything.  Anybody else?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:wizard2072098
ID: 1447536
The short answer is that it is impossible to do with a somewhat limited language like VB. What you're wanting to do would most likely require you to write a Virtual Device Driver that can access the hardware abstraction layer in Windows and simulate a CD-ROM. You'd have to be able to latch the Windows ASPI or SPARROW driver and create a fake device type.

People charge big bucks to do stuff like that. Hey, let me know if you need to have it written for ya... :)

0
 
LVL 1

Expert Comment

by:wizard2072098
ID: 1447537
The short answer is that it is impossible to do with a somewhat limited language like VB. What you're wanting to do would most likely require you to write a Virtual Device Driver that can access the hardware abstraction layer in Windows and simulate a CD-ROM. You'd have to be able to latch the Windows ASPI or SPARROW driver and create a fake device type.

People charge big bucks to do stuff like that. Hey, let me know if you need to have it written for ya... :)

0
 
LVL 2

Expert Comment

by:trillo
ID: 1447538
If you type the following line on your autoexec.bat file, Windows will recognize the folder as a new drive

subst e: c:\Projects\MyProgram

where e will be the new drive, and the rest is the path you want to convert in a new drive.

Note: You can write this line at the DOS prompt of any DOS window, and the virtual drive will remain there even if you end that DOs session.

0
 

Author Comment

by:blckherald
ID: 1447539
It needs to be a CD drive, not a hard drive.  wizard2 says it's impossible with VB.  Sorry.  (How do you take a question of the lists?)
0
 
LVL 3

Accepted Solution

by:
Flubbadub earned 150 total points
ID: 1447540
Well, does this have to be done repeatedly using vb or is this just a once off event.. if you are just trying to emulate a cd from hard disk try the following:

make a 650Mb partition and make it read only

OR

If you are on a network , share the folder you want to turn into a "CD" drive with read only access and then map it as a drive...

we use both of these methods internally to emulate a CD like environment for multimedia development.

Hope this helps

Wayne Lee-Archer
Managing Director (Programming solutions)
Everything Multimedia Australia P/L
EMAIL: ema@microtech.com.au
0
 

Author Comment

by:blckherald
ID: 1447541
I don't think this can be done, but since I don't know how to take the question of the lists, I'll just give you the points.  Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now