Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

burn a cd from a ruby script

2 views
Skip to first unread message

webwesen

unread,
Aug 2, 2005, 11:09:09 AM8/2/05
to
hello, ruby gurus,
is there a way to burn a cd from a ruby script on Windows?
thx

James Britt

unread,
Aug 2, 2005, 11:39:57 AM8/2/05
to
webwesen wrote:
> 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


rcoder

unread,
Aug 2, 2005, 1:38:50 PM8/2/05
to
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

webwesen

unread,
Aug 2, 2005, 3:39:30 PM8/2/05
to
that's what I was lloking for. thanks!

0 new messages