ingoha
Dec 30th, 1999, 08:02 AM
I just need help by accessing the CDRom via VB. How can i detect the lenght of a single track? how can i detect the number and typ of tracks on a cd-rom? Thanks for help...
Happy new year.
Wolf
christophe
Dec 30th, 1999, 05:55 PM
Not too sure what you mean. People won't be able to interefere with the length of your tracks if it's on CD-ROM, as it's read only. You will already know this information so you can give it to them quite easily.
To start your VB program automatically when someone inserts the CD in the drive include an autorun file on the CD, at the very root - not in any folders or anything. This is a simple text file, and call it 'Autorun'. For example, if your .exe is called MyApp.exe, in the autorun file include the following text:
[autorun]
open=MyApp.EXE
This should start your program automatically. And in your program you could have, in a text box or something, the length of each track.
Happy New Year!