Link to home
Start Free TrialLog in
Avatar of jaksenov
jaksenov

asked on

Finding default CD-Rom.......

Ok, I made a splash screen for my CD-ROM (Autorun.exe and Autorun.inf).
7 seconds after the splash screen a menu that i created opens up with
all the programs on the CD. For each program i made a button,
in that button i wrote:

Shell "G:\Adobe\Acrobat4readerdemo\Setup.exe"

(that was just an example)
So when i click on the button, it opens up the installion program for
that app on that cd, that is located in Drive G:\, on my computer.!

Now the problem is this:  when i insert the cd into a different
computer, the menu with all the buttons doesn't work, because when i
created the button, the shell command refered to the exe that was on
drive G:\ (located on my pc).  The people that i'm going to be giving
out the cd with my family photos to will have different cd-rom driver
letters and i won't know what there's is going to be
(cd-rom driver letter).  

Question:  How do i make the shell command read the setup.exe that is
located in the folder Adobe\Acrobat\ on the CD-ROM that my disc is in?
Or is there some other command that allows me to do that?  
ASKER CERTIFIED SOLUTION
Avatar of setiawan
setiawan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jaksenov
jaksenov

ASKER

setiawan, thank u so much for that code.
I will defenatly use it, but i also found a much easerier code:
Private Sub Command1_Click()
Shell Left(App.Path,1) _ & ":\whatever\Setup.exe"
End Sub


In your code where do i put in the path of the setup.exe?
Well thanks for the help danny!

here is my e-mail
jaksenov@home.com
Hi jaksenov,

the code is only search which drive letter is CD-ROM drive.

function CDletter will return what you need

 danny
Ohh ok, Thanks Setiawan.