How programmatically write to DVD with autorun?

  • Thread starter Thread starter Ronald S. Cook
  • Start date Start date
R

Ronald S. Cook

In my C# Win app, I'm wanting the user to click a button that will prompt to
load blank DVD and then burn not only select files, but also an autorun
file.

Can anyone please get me started in the right direction?

Thanks,
Ron
 
Ron,
In my C# Win app, I'm wanting the user to click a button that will prompt
to load blank DVD and then burn not only select files, but also an autorun
file. Can anyone please get me started in the right direction?

I could be wrong here, but I don't think any Windows version currently
supports burning DVDs without third-party components. Unless I'm mistaken,
Windows XP (for example) can only burn CDs, but not DVDs.

Nonetheless, if CDs will do, then there's a COM interface called the Image
Mastering API, which is documented here:

http://msdn.microsoft.com/library/?url=/library/en-us/imapi/imapi/image_mastering_api.asp?frame=true

You could use this interface from your own code. Also, there's a ready-made
C# wrapper for this interface. See the XP Burn project:

http://msdn.microsoft.com/vcsharp/downloads/samples/xpburn/

And as for Autorun files, they are just simple INI (text) files. If you open
one with Notepad, you will immediately figure out how it works. Just create
one to the root directory of your CD/DVD. Here's the reference (note long
link):

http://msdn.microsoft.com/library/d...ll_basics_extending/autorun/autoplay_cmds.asp

Hope this helps to get you started.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(e-mail address removed)
http://www.saunalahti.fi/janij/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top