Board index » delphi » How to Auto Start a Delphi App when a floppy is inserted

How to Auto Start a Delphi App when a floppy is inserted

How do I get a small Delphi4 app on a floppy to execute when the
floppy is inserted into a computer. I need something like an
AutoExec.bat file I suppose but I am stumped on how to go about it.

Ian Millward

 

Re:How to Auto Start a Delphi App when a floppy is inserted


Quote
Ian Millward <ian.millw...@rrds.co.uk> wrote in message

news:378338a7.14493320@mail.rrds.co.uk...

Quote
> How do I get a small Delphi4 app on a floppy to execute when the
> floppy is inserted into a computer. I need something like an
> AutoExec.bat file I suppose but I am stumped on how to go about it.

The reason you are stumped is that it is impossible. The
OS does not support this, and even worse, neither
does the hardware. You could do it on a Mac, maybe. Why
do you think Windows doesn't know there is no disk
in the drive until you actually try and read from it?

Anyway, even if this was a "feature" of Windows, I'd have
it turned off for fear of viruses.

What are you trying to do?

--
Jeremy Collins
Kansai Business Systems
http://www.kansai.co.uk/

Re:How to Auto Start a Delphi App when a floppy is inserted


Hi Ian,
Ian Millward wrote

Quote
>How do I get a small Delphi4 app on a floppy to execute when the
>floppy is inserted into a computer. I need something like an
>AutoExec.bat file I suppose but I am stumped on how to go about it.

It is in the OS but Disabled by default.
It is the same mechanism as for CD's i.e. autorun.inf

But I can't remember the registry changes required.

Hope this starts you on the right track.

Peter

Other Threads