Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: opening the cd rom

by pg (Canon)
on Oct 04, 2004 at 02:16 UTC ( #396097=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://396097]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2022-05-24 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?