Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fso.CopyFile To CDRW

Status
Not open for further replies.

jahavri

Programmer
May 28, 2001
2
US
I'm trying to use VB to write a program that copies a number of files to a CDRW disk that has been formatted for packet writing (Sony 8/4/32). I seem to keep getting errors about 3/4 way through the process. I'm guessing it's a buffer over/underrun problem but VB doesn't seem to have much to check status of the drive/buffer. I check to make sure that the file is fully written before going to the next. Also tried adding a check using the drv.IsReady method. Still, it crashes. Any ideas for a better way to do this and/or add checks to make it work?

Thanks in advance!
 
hi,
I am doing somewhat similar to yours...trying to write no. of files to CDRW through VB.
You may be able to help me...

1) I belive that a reference must be added to the project
for the CD-Writer software(we are using Adaptec eascy CD)
2) This is my first experience to automate Easy CD from VB,
hence any tips for this process is valuable to me.
3) I have use the COPYFILE to copy files from C:\ to
CD-drive, which copies all files(all txt-files) from
a folder.
how would I copy and check each file is fully written to
the CD?
4) how may I check, CD-drive is ready?

Your help with any/all of these question will be really valuable to me. Hope to see your reply soon.
Thanks in advance.
 
Sounds like we're on a similar quest. I am accessing the drive through Sony abCD which is a UDF driver that was provided with the drive (similar to your DirectCD). The access through abCD is by virtue of it being loaded as an application on the system. WRT your question of how to add a reference, I suppose you could (if it were a DLL, which abCD isn't), but you'd have two problems, first you'd need to know the documented interface, and second, if you wanted to distribute your program you'd be violating copyright. So I guess what we're both looking for is a royalty free UDF driver for CDRWs. As far as your specific questions WRT how to write and then check, I could send you some code fragments to show you what I've done. Might not be the best but it seems to work other than the buffer problem. Contact me at jhavrilla1@home.com. Thanks for your response and please let me know if you find a solution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top