Click to See Complete Forum and Search --> : Automatically execute a program?


Tim
12-18-2000, 10:14 AM
Does anyone out there know a way that if I put an executable on floppy disk
that the executable (say there is only one) is run as soon as it is placed
in the disk drive?

Thanks,

Tim

Andy Friedman
12-18-2000, 12:30 PM
it would be great if you could have "autorun" capabilities on floppies just
like cd's :-)

the problem with most floppy drives is that they don't signal the os when a
disk is entered or removed. so i don't think it's possible, not unless you
had a background service that was constantly polling the floppy drive... but
that is not a desireable solution.

andy

"Tim" <barczt@central.edu> wrote in message news:3a3e29be$1@news.devx.com...
>
> Does anyone out there know a way that if I put an executable on floppy
disk
> that the executable (say there is only one) is run as soon as it is placed
> in the disk drive?
>
> Thanks,
>
> Tim

Danny Kalev
12-19-2000, 11:00 AM
As Andy says, it's nearly impossible to do that, unless you have a
system service (or daemon, Unix speaking) that polls the floppy drive
frequently and detects an inserted diskette. There are several problems
with this concept: security (what if the diskette is infected with a
virus and you inserted it to delete a contaminated program?), what if
the diskette contains several programs?

Danny

Tim wrote:
>
> Does anyone out there know a way that if I put an executable on floppy disk
> that the executable (say there is only one) is run as soon as it is placed
> in the disk drive?
>
> Thanks,
>
> Tim