Any suggestions, code bits, or ideas?
Thanks,
Keith
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.
Look at Pretty Pop's 'POP Cd' application.
<http://www.prettypop.net/software/recomended.html>
--
William L. Hartzell
Thanks a Million!
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
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.
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.]
> 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).
autorn12.zip on Hobbes?
> 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
> 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
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.
Thanks. I do have a script working and am testing it.
Keith