I am writing a program that downloads images to the hard drive and then I want to burn the folders that those are all divided up into, on a cd. I don't want to create and image to burn, I just want to take all those folders and files and burn them to disc just like they are on the hard drive. Anyone know of a way to do this in C#?
I am using Windows 7 and Visual Studio 2008.
Browse any files you would like to add to the disc, then click Start > File Explorer > This PC and open the drive containing your DVD-R or CD-R. Then drag and drop any files you want to write to the disc. When complete, click the Manage tab and then Eject.
IMAPI2 - version 2 of the IMAPI API - is native to Windows 7 and is the preferred interface.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366457(v=vs.85).aspx
There is no way to do this without calling API calls in to windows. It appears to be done with COM calls(ICDBurn for XP, MAPI for Windows Vista or newer). Here is a SO Question that can point you in the right direction in how to do it in C++.
If you need assistance doing COM calls in C# feel free to open a new question on the issue you are having with that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With