Page 1 of 1
CD Functions
Posted: Thu Sep 08, 2011 11:14 pm
by CleverBoy
Hello people, i just need to know some CD Functions like how to write data on cd, eject cd, format cd, copy cd files, ...
Hope will get tutorials
Thank you
Re: CD Functions
Posted: Thu Sep 08, 2011 11:24 pm
by comathi
Do you mean like code to control a cd drive in VB.NET, because if so, you can use some code found here:
http://www.dreamincode.net/forums/topic ... e-cd-tray/
Re: CD Functions
Posted: Fri Sep 09, 2011 12:41 am
by CleverBoy
Thank you

this was just 1 feature , to open and close cd drive..
need mmore
thanks
Re: CD Functions
Posted: Fri Sep 09, 2011 1:37 am
by comathi
To burn files to a Cd with VB, you need a special API or SDK you can find by googleing it. To copy files, it should be as easy as
Code: Select allMy.Computer.FileSystem.CopyFile("filename", "copy to")
or something like that. As for formatting the disk, it is impossible, as Cds cannot be formated.
Hope this helps
-Comathi-
Re: CD Functions
Posted: Fri Sep 09, 2011 11:52 am
by mandai
You can format a CD to certain filesystems, but usually this is handled by a driver or other burning software.
You can use the Image Mastering API to burn disks, see:
http://msdn.microsoft.com/en-us/library ... px#example
Re: CD Functions
Posted: Fri Sep 09, 2011 12:13 pm
by Dummy1912
hello mate,
you have to use a class call : Imapi2Interop
this is the function to write/burn cd's.
Code: Select allPrivate _CurrentAction As IMAPI2.Interop.IMAPI_FORMAT2_DATA_WRITE_ACTION
Re: CD Functions
Posted: Fri Sep 09, 2011 9:16 pm
by CleverBoy
Thank you guys for help
