[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • Last Modified:

copy files to a CD

In my winform app. I need to copy some files to a CD without burning them.
 I use file.copy(fileToCopy,@"D:\") and got an IO exeption error.
How can I sove this issue?
0
yaron89
Asked:
yaron89
1 Solution
 
roeibCommented:
on what position are you recieving the IO Exception? on the Read or the Write.

you cant just write files to the CDROM, in order to Write them you need todo something like XPBurn Application, you need to burn them, meaning you can build an application that stores the location of the files and uppon burn command burns them from the location to the CD
0
 
milindsmCommented:
CD file system is different. Look for CDFS APIs
0
 
yaron89Author Commented:
Hi,
I don't want to burn the files. I would like to add them to the list of files that waiting to be burn on the CD.  
Thanks
 
 
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
roeibCommented:
try using the CD IMAPI.

here is a sample

http://read.pudn.com/downloads116/sourcecode/windows/csharp/495574/CSharpBurn/CDBurner.cs__.htm

ignore the Burn Part until you want to execure the Burn procedure, this should do the trick
0
 
yaron89Author Commented:
Thank You
0
 
nffvrxqgrcfqvvcCommented:
Just to add to the question

CSIDL_CDBURN_AREA (FOLDERID_CDBurning)

If you have recording enabled it maps to CSIDL_CDBURN_AREA a temporary location until your ready to burn. You can directly write to this location instead of trying to write to a read only device.

Ex. C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\CD Burning
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now