?
Solved

Format a cd with VB6

Posted on 2003-11-19
12
Medium Priority
?
386 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
  • +1
12 Comments
 
LVL 3

Expert Comment

by:NBrownoh
ID: 9777259
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
ID: 9777844
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
ID: 9778197
I would like to format the CD without any help from the user, if it's possible.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 48

Expert Comment

by:AlexFM
ID: 9778293
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
ID: 9778858
Format CD? ARe you talking about CD_RW ?
0
 

Author Comment

by:mikael_lu
ID: 9778888
Clarification, I'm only going to use CD-R
0
 
LVL 26

Expert Comment

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

Author Comment

by:mikael_lu
ID: 9779136
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
ID: 9779332
>>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
ID: 9779559
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 750 total points
ID: 9781334
thats because it hows no TOC section, writing a generic TOC on that cd will make it useless
0
 

Author Comment

by:mikael_lu
ID: 9785281
How do I generate TOC section?
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

801 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