For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Syntax > April 2005 > how to tell the program to print from the CD drive









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to tell the program to print from the CD drive
JEG

2005-04-12, 4:00 am

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


Veign

2005-04-13, 4:01 am

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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com