Writing data to a cd rom

P

pierre

Hi all,

I am using fso to create a directory on a cd rom.

I can move file between to hard drive with no problem
but when i try to create a folder on a cd-rom i have
the message

Error 70 Access denied

Is it possible to write to a cd in vba.

regards,
Pierre
 
J

John Nurick

I assume you mean CD-R or CD-RW, because it's impossible to write to a
CD-ROM.

Equally, burning a CD uses different processes from the standard file
operations offered by the File System Object. Your choices are
basically:

- assemble the file structure you need in a folder on your hard drive,
and then use a CD-burning utility or library to write them to CD (e.g.
you could shell to Alex Feinman's free CreateCD.exe command line
utility).

- Install one of the special CD-R/W drivers that make the CD drive look
to the operaing system like an ordinary hard drive. That way, you can
use FSO and the standard file system operations. I've never used these
drivers,but most or all of the commercial CD/DVD-writing software suites
seem to include them, including the versions bundled with most CD
drives.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top