473,320 Members | 1,838 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,320 software developers and data experts.

accessing CD/DVD-ROM without drive letters

I am trying to open a pdf file from a CD in my VB app. I'm using
System.Diagnositcs.Process.Start to open the file, but I can't use
d:\file.pdf because not all cd-rom drives are named d:\. How can I get around
this?
Jan 23 '06 #1
4 1896
"Jedi10180" <Je*******@discussions.microsoft.com> schrieb:
I am trying to open a pdf file from a CD in my VB app. I'm using
System.Diagnositcs.Process.Start to open the file, but I can't use
d:\file.pdf because not all cd-rom drives are named d:\. How can I get
around
this?


Well, what would you do if there is more than one Cd drive available on the
system?

Opening and closing the CD-ROM drive
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=setcddoorstatus&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 23 '06 #2
Well, if there is someway to use a relative path so that the application just
looks on the CD that called it, it wouldn't matter how many CD drives were on
the machine. That's the functionality I'm looking for.

"Herfried K. Wagner [MVP]" wrote:
"Jedi10180" <Je*******@discussions.microsoft.com> schrieb:
I am trying to open a pdf file from a CD in my VB app. I'm using
System.Diagnositcs.Process.Start to open the file, but I can't use
d:\file.pdf because not all cd-rom drives are named d:\. How can I get
around
this?


Well, what would you do if there is more than one Cd drive available on the
system?

Opening and closing the CD-ROM drive
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=setcddoorstatus&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 23 '06 #3
"Jedi10180" <Je*******@discussions.microsoft.com> schrieb:
Well, if there is someway to use a relative path so that the application
just
looks on the CD that called it, it wouldn't matter how many CD drives were
on
the machine. That's the functionality I'm looking for.


'Application.StartupPath' + 'System.IO.Path.*'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 23 '06 #4
I have tried Application.StartupPath, but since the application has to
install the .Net framework (I'm assuming this is the reason),
Application.StartupPath returns a temp directory on the local hard drive. So
using that in the System.Diagnostic.Process.Start call doesn't work because
that's obviously not where my pdfs from the CD are stored. The more I think
about this, the less I think that there might be a way around it. I hope I'm
wrong - any other ideas?

"Herfried K. Wagner [MVP]" wrote:
"Jedi10180" <Je*******@discussions.microsoft.com> schrieb:
Well, if there is someway to use a relative path so that the application
just
looks on the CD that called it, it wouldn't matter how many CD drives were
on
the machine. That's the functionality I'm looking for.


'Application.StartupPath' + 'System.IO.Path.*'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 23 '06 #5

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

Similar topics

0
by: James | last post by:
Hi, I am making a basic DVD shop and after having produced code which displays a list of DVDs from my database, I implemented a search facility which enables the user to search by title, director...
0
by: James | last post by:
Hi, I am trying to build a shopping cart for my DVD website and am having trouble reading variable over different pages. I have a page that allows the user to add things to their cart and this...
6
by: jonathanztaub | last post by:
I have a DVD CD. * Is it possible to embed it within an html page? * Does the user has to have windows media player or any other program associated with it? * How exactly do I use the <embed>...
1
by: adi sesha via .NET 247 | last post by:
Hi All , I want to access the external vcd/dvd/cd player which weconnect to TV's to be operated with Computers. I am havingWINNOV card in my pc along with dvd player.Now using dotnet iwann to...
16
by: Dutchman | last post by:
I want to safe a backup file of Norton Ghost 10.0 to a DVD but after making the image the dvd stops working. First i changed the entire systeem by going back to an backup of 9 days. That didn't...
2
by: =?Utf-8?B?U3UgbmVpbA==?= | last post by:
My media centre will only let me create data dvd's and not slideshow dvd's can anyone help with a solution. I have a dell dimension 9150 and media centre 2005
4
Dvd
by: bheki | last post by:
Greetings I have a c++ problem that i have to solve in one week, Can anyone of you guys help? The program should be-menu-driven with the following options:
17
by: jmarcrum | last post by:
Hi! I am trying to write a DVD class that will model a DVD in several ways. I wrote a test driver program to exercise my class. I want each DVD to have a fake serial number. The first number...
4
by: Jerry Spence1 | last post by:
I am creating a project involving video files and I need to be able to offer the user the ability to burn the result to DVD. I don't need any fancy titles, transitions or anything. I know there...
4
by: MNNovice | last post by:
Hi: I need some help with the ID numbering for a database I am designing for my DVD collection. I have some general idea of what I would like to accomplish. Here it is in a nutshell. ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

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.