| Author |
how to tell the program to print from the CD drive
|
|
|
| I am working on something that is going to be burned to a CD and users
will
use it from their CD drive. I need to have some macros that will print
certain files from the CD when they click a button. How do I get the
program to look at their CD drive for the files since I won't know what
their CD drive is called (i.e. it could be their D drive, E drive, etc.)
Any help greatly appreciated!
Jackie
| |
| Karl E. Peterson 2005-04-13, 4:01 am |
| JEG wrote:
> I am working on something that is going to be burned to a CD and users
> will use it from their CD drive. I need to have some macros that will
> print certain files from the CD when they click a button. How do I
> get the program to look at their CD drive for the files since I won't
> know what their CD drive is called (i.e. it could be their D drive, E
> drive, etc.)
One common approach is to ask the user. Another way is to ask the system. See
http://vb.mvps.org/samples/DrvInfo for a drop-in ready class that will give you much
information about every available drive. Recognize, too, that it's quite common for
there to be multiple CD drives.
--
Working Without a .NET?
http://classicvb.org/petition
| |
|
| If the application is on the CD with the files to print then look into the
App.Path property...
--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/
"JEG" <eyankee@nospam.aol.com> wrote in message
news:058ac37a152a736235432882125be0cd@lo
calhost.talkaboutsoftware.com...
> I am working on something that is going to be burned to a CD and users
> will
> use it from their CD drive. I need to have some macros that will print
> certain files from the CD when they click a button. How do I get the
> program to look at their CD drive for the files since I won't know what
> their CD drive is called (i.e. it could be their D drive, E drive, etc.)
>
> Any help greatly appreciated!
> Jackie
>
>
| |
| Karl E. Peterson 2005-04-13, 4:01 pm |
| Veign wrote:
> If the application is on the CD with the files to print then look
> into the App.Path property...
D'oh! You _read_ that question far better than I...
--
Working Without a .NET?
http://classicvb.org/petition
|
|
|
|