|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
accessing CD/DVD-ROM without drive lettersI 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? "Jedi10180" <Jedi10***@discussions.microsoft.com> schrieb: Well, what would you do if there is more than one Cd drive available on the >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? 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/> 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. Show quoteHide quote "Herfried K. Wagner [MVP]" wrote: > "Jedi10180" <Jedi10***@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/> > > "Jedi10180" <Jedi10***@discussions.microsoft.com> schrieb: 'Application.StartupPath' + 'System.IO.Path.*'.> 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. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> 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? Show quoteHide quote "Herfried K. Wagner [MVP]" wrote: > "Jedi10180" <Jedi10***@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/> > >
Modifying a text file
disable Close button (X) Application doesn't close on Shut Down - Please help! Using pulldownlist in datagridview .. can it be done! Intern Strings - am I using them right? Please help! Marking a changed row read the contents of Address bar in browser .NET2.0: Performance von String-Operationen Error- Type expected stringbuilder help |
|||||||||||||||||||||||