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

os/2 utility to detect when cdrom is inserted

4 views
Skip to first unread message

Keith Cotroneo

unread,
Mar 27, 2004, 7:16:08 PM3/27/04
to
I am looking for a utility or rexx script to detect when a cdrom is
inserted. I would like to be able to have the utility run in the
background then launch an application when it detects that a cd was
inserted.

Any suggestions, code bits, or ideas?

Thanks,

Keith

Bob Eager

unread,
Mar 27, 2004, 8:29:57 PM3/27/04
to

Best I can see at present is to call DosDevIOCtl to get the device
status, then re-check say every few seconds to detect a change.

William L. Hartzell

unread,
Mar 27, 2004, 8:42:09 PM3/27/04
to
Sir:

Look at Pretty Pop's 'POP Cd' application.
<http://www.prettypop.net/software/recomended.html>

--
William L. Hartzell
Thanks a Million!

Keith Cotroneo

unread,
Mar 27, 2004, 9:57:11 PM3/27/04
to
On Sun, 28 Mar 2004 01:29:57 UTC, "Bob Eager" <rd...@spamcop.net>
wrote:

Thanks for the idea.

Keith


Keith Cotroneo

unread,
Mar 27, 2004, 10:04:06 PM3/27/04
to

Thanks. I did check that one out, but I need something that is more
flexible. Prettypop is really designed for audio cds. I am interested
in creating a warpvision station that will run wv and load an avi file
off a cd when I insert the cd. I am working with syfiletree in rexx to
detect right now.

Keith

James J. Weinkam

unread,
Mar 28, 2004, 2:32:35 AM3/28/04
to
Get (ugh) Windoze.

One of the many reasons I use OS/2 instead of Windoze is that that doesn't
happen in OS/2. I consider it presumptuous on the part of an OS to assume
that just because I inserted a CD in a drive that I want to run a particular
program on it. Maybe I just want to browse it. Maybe I want to get the CD out
of the sun. I'm the only one who knows, and when I'm good and ready I'll tell
the OS what I want it to do.

Sorry to be unhelpful, but I just wouldn't want to see that sort of thing
happen to OS/2.

BTW that sort of thing can also launch viruses.

Marty

unread,
Mar 28, 2004, 2:50:08 AM3/28/04
to

Keep in mind that this is probably going to make the CD spin up and whir
around every time you check, and may have power consequences on portable
systems.

--
[Reverse the parts of the e-mail address to reply.]

Bob Eager

unread,
Mar 28, 2004, 4:53:48 AM3/28/04
to
On Sun, 28 Mar 2004 08:32:35 UTC, "James J. Weinkam" <j...@cs.sfu.ca>
wrote:

> One of the many reasons I use OS/2 instead of Windoze is that that doesn't
> happen in OS/2.

It's the first thing I turn off when I install a Windows system. (and
yes, it is trvial to turn off).

William L. Hartzell

unread,
Mar 28, 2004, 4:57:18 AM3/28/04
to
Sir:

autorn12.zip on Hobbes?

Keith Cotroneo

unread,
Mar 28, 2004, 9:26:20 AM3/28/04
to
On Sun, 28 Mar 2004 07:32:35 UTC, "James J. Weinkam" <j...@cs.sfu.ca>
wrote:

> Keith Cotroneo wrote:

I understand, but this is for a specific application. I am not looking
to create an autorun equivalent. Actually, autorun for os/2 already
exists.

I am trying to detect and run and avi file with warpvision. Then, if I
hit the eject button, I want the warpvision app to close.

Keith

Keith Cotroneo

unread,
Mar 28, 2004, 9:32:13 AM3/28/04
to
On Sun, 28 Mar 2004 09:57:18 UTC, "William L. Hartzell"
<wlhar...@comcast.net> wrote:

> Sir:
>
> Keith Cotroneo wrote:
> > I am looking for a utility or rexx script to detect when a cdrom is
> > inserted. I would like to be able to have the utility run in the
> > background then launch an application when it detects that a cd was
> > inserted.
> >
> > Any suggestions, code bits, or ideas?
> >
>
> autorn12.zip on Hobbes?

If it could be modified. Unfortunately, it looks for autorun.inf on
the cdrom which I don't have on my cds. They only have avi files.

Keith

Mike Ruskai

unread,
Mar 29, 2004, 12:08:31 AM3/29/04
to
On Sun, 28 Mar 2004 03:04:06 GMT, Keith Cotroneo
wrote:

http://hobbes.nmsu.edu/cgi-bin/h-viewer?sh=1&fname=/pub/os2/dev/rexx/rxerro
r.zip

Perhaps you can devise your own solution in REXX with the help of that.


--
- Mike

Remove 'spambegone.net' and reverse to send e-mail.


Keith Cotroneo

unread,
Mar 29, 2004, 8:20:18 AM3/29/04
to

Thanks. I do have a script working and am testing it.

Keith

0 new messages