http://qs321.pair.com?node_id=396097


in reply to opening the cd rom

As to open CDROM, you can call win api: (This is not about CGI ;-)

use Win32::API; use strict; use warnings; my $f = Win32::API->new("winmm", "mciSendString", "PPNN", "N"); my $ret = ' ' x 127; my $return = $f->Call('set CDAudio door open', $ret, 127, 0);

Replies are listed 'Best First'.
Re^2: opening the cd rom
by Fletch (Bishop) on Oct 04, 2004 at 02:48 UTC

    Of course using this in a CGI would open the tray on your server. Might even be somewhat useful as a primitive hit counter, or at least it could amuse the guys in the server room . . . :)

      That's just plain wicked, Fletch. I love it!
      ggg