I have a data file in f:\ drive named 'cd.txt'. I want to write this file to a CD i.e E:\.
String source ="F:\\cd.txt";
String destination="E:\\cd.txt";
File.copy(sorce,destination);
The above line is throwing exception saying:
"Access to the path 'E:\cd.txt' is denied"
I don't think that's so easily feasible, Windows explorer give the impression doing a file copy is enough but that not the case.
I think you might take a look at XPBurn component.