Solved

Format a cd with VB6

Posted on 2003-11-19
12
381 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
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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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 250 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

777 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