Format a cd with VB6

Then I put in a new CD in the burnerdevice I would like to check if the CD is formatted or not. If the CD is not formatted I would like to do that. Can I call the program DirectCD with any command and format the CD?
mikael_luAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NBrownohCommented:
youll probably need to use the mcisendcommand or mcisendstring API call to start a format.  nor the actuall command or string i am unsure of
0
AlexFMCommented:
Roxio Direct CD doesn't have any programming interface. There is no COM interface, API or command line utility to control CD burning from the program.
You can try to copy file to CD. If this fails, CD is not formatted. In this case run Roxio Direct CD using Shell command. For example, in Roxio 5 you can run project selector:

Shell "C:\Program Files\Common Files\Adaptec Shared\CreateCD\CreateCD50.exe"

User should select Direct CD in the opened window and format it. When CD is ready for use, your program may copy files to it.
0
mikael_luAuthor Commented:
I would like to format the CD without any help from the user, if it's possible.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

AlexFMCommented:
I don't think it is possible with Roxio Direct CD. They make their program only for end-userd and not for programmers. There are other products (like Nero) which have programming interface and may be used by end-users and also by programmers. Roxio doesn't have such features.
You can try to run Roxio using Shell and after this programmatically press it's buttons using SendInput, but such things never work properly for 100%.
If you are interesting for using other CD burning products, check out NeroCOM.
0
EDDYKTCommented:
Format CD? ARe you talking about CD_RW ?
0
mikael_luAuthor Commented:
Clarification, I'm only going to use CD-R
0
EDDYKTCommented:
Then Why you need to format CD? Format CD for Read only?
Am I missing something?
0
mikael_luAuthor Commented:
I'm sorry EDDYKT, wrong answer from me, of course is it a CD-RW.
Otherwise it's not possible for me to copy files to the CD (for backup).
0
EDDYKTCommented:
>>Clarification, I'm only going to use CD-R


What I trying to say is if you use cd-r, you don't have to format the cd. the cd allows you to write once.
0
mikael_luAuthor Commented:
When I put a new CD-R in burnerdevice I would like to look on the CD with Explorer.
But Explorer can't read on the CD before it have been fomatted.
0
NBrownohCommented:
thats because it hows no TOC section, writing a generic TOC on that cd will make it useless
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mikael_luAuthor Commented:
How do I generate TOC section?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.