burn a cd from a ruby script

W

webwesen

hello, ruby gurus,
is there a way to burn a cd from a ruby script on Windows?
thx
 
J

James Britt

webwesen said:
hello, ruby gurus,
is there a way to burn a cd from a ruby script on Windows?


Have you tried File.copy?

Some Windows CD software sees up the drive such that, at least in File
Explorer, simply dragging files to the CD drive prepares it for burning
(though there may be some other steps to finalize this).


Also, see what CD burning software you have, or can get, and see if it
exposes a scriptable interface or an ActiveX DLL. You should be able to
drive these with Ruby.

As a last resort, consider using AutoItX, which let you script pretty
much anything in Windows by way of clicks, drags, typing, and so on.

James

--

http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
 
R

rcoder

There is, IIRC, a Cygwin port of the *NIX 'cdrtools' package, which
gives you access to command-line tools to burn a CD image.

The key programs are going to be 'mkisofs' and 'cdrecord' -- the first
creates an ISO disk image from a set of files, and the second burns it
to your media.

-Lennon
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top