Reputation: 55
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
Reputation: 7921
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