CD Functions

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
7 posts Page 1 of 1
Contributors
User avatar
CleverBoy
VIP - Donator
VIP - Donator
Posts: 395
Joined: Mon Dec 06, 2010 8:29 pm

CD Functions
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
Code'N'Stuff
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Re: CD Functions
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/
User avatar
CleverBoy
VIP - Donator
VIP - Donator
Posts: 395
Joined: Mon Dec 06, 2010 8:29 pm

Re: CD Functions
CleverBoy
Thank you :) this was just 1 feature , to open and close cd drive..
need mmore
thanks
Code'N'Stuff
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Re: CD Functions
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 all
My.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 :D

-Comathi-
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: CD Functions
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
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: CD Functions
Dummy1912
hello mate,

you have to use a class call : Imapi2Interop

this is the function to write/burn cd's.
Code: Select all
Private _CurrentAction As IMAPI2.Interop.IMAPI_FORMAT2_DATA_WRITE_ACTION
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
CleverBoy
VIP - Donator
VIP - Donator
Posts: 395
Joined: Mon Dec 06, 2010 8:29 pm

Re: CD Functions
CleverBoy
Thank you guys for help :)
Code'N'Stuff
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
7 posts Page 1 of 1
Return to “Tutorial Requests”