Autostart USB drive when inserted

  • Thread starter Thread starter mannc
  • Start date Start date
M

mannc

Is there a way to setup a program to autostart and run when a USB drive
is inserted to a computer? I found a way but it requires software to
be pre-loaded on a pc. I want to purchase a large quantity of drives
and burn them with an image and distribute. When inserted I want my
program to autorun.
 
Don't know if it would work, but have you tried using an autorun.inf file
(similiar to a CD)?
 
yes, use autorun.inf, just like in the CD.

create and place a file named "autorun.inf" into the USB drive. open the
autorun.inf file using notepad, and type this inside:

[AutoRun]
open=abcde.exe

Note: assuming your program in named "abcde.exe"

While it usually autorun in Windows 2000 and XP, there is a possibility that
it won't run, too. Like my computer, I disabled the autorun, to prevent
viruses to autorun when I insert foreign usb or CD drives.
 
ameyashetti said:
Hi Guys ,

Is there any way to to have a script in windows that detects USB insert
and runs an application from windows (anivirus).

That */46-month old/* thread already told you how.

A leech site pretending to have forums by running a webnews-for-dummies
interface that submits improperly formatted posts through a gateway to
Usenet (aka newsgroups).
 
Back
Top