Solved

Format a cd with VB6

Posted on 2003-11-19
12
378 Views
Last Modified: 2010-05-01
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?
0
Comment
Question by:mikael_lu
  • 5
  • 3
  • 2
  • +1
12 Comments
 
LVL 3

Expert Comment

by:NBrownoh
Comment Utility
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
 
LVL 48

Expert Comment

by:AlexFM
Comment Utility
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
 

Author Comment

by:mikael_lu
Comment Utility
I would like to format the CD without any help from the user, if it's possible.
0
 
LVL 48

Expert Comment

by:AlexFM
Comment Utility
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
 
LVL 26

Expert Comment

by:EDDYKT
Comment Utility
Format CD? ARe you talking about CD_RW ?
0
 

Author Comment

by:mikael_lu
Comment Utility
Clarification, I'm only going to use CD-R
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 26

Expert Comment

by:EDDYKT
Comment Utility
Then Why you need to format CD? Format CD for Read only?
Am I missing something?
0
 

Author Comment

by:mikael_lu
Comment Utility
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
 
LVL 26

Expert Comment

by:EDDYKT
Comment Utility
>>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
 

Author Comment

by:mikael_lu
Comment Utility
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
 
LVL 3

Accepted Solution

by:
NBrownoh earned 250 total points
Comment Utility
thats because it hows no TOC section, writing a generic TOC on that cd will make it useless
0
 

Author Comment

by:mikael_lu
Comment Utility
How do I generate TOC section?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now