jSystem75
jSystem75

Reputation: 55

How to run a program automatically from an USB drive when USB drive is plugged-in?

I've been trying to create an automatically started application on an USB drive that executes a batch file. I have tried a lot of codes for the autorun.inf for example:

[autorun]
open=PStart.exe

Batch file:

@echo off
echo Test
pause > nul

But when I plug-in the USB drive nothing happens.

How can I solve this problem?

Upvotes: 2

Views: 7351

Answers (1)

DavidPostill
DavidPostill

Reputation: 7921

How can I solve this problem?

If I'm using windows 7 is it possible?

On Windows 7 it is possible.

Control Panel -> Programs -> Default Programs -> Change AutoPlay settings,

Adjust as required.

Source Windows 7 Autoplay completely disabled - how to re-enable? answer by Ankur Dholakiya

Upvotes: 1

Related Questions