I'm trying to make a autorun.inf file which would open a .bat file from a flash drive.
What I have in the autorun.inf file:
[autorun]
open=launch.bat
icon=icon.ico
What I have in the launch.bat file:
@echo off
::start
mkdir "C:\ThisIsATest"
exit
When I have inserted the flash drive to my personal computer, I have noticed that the icon of the drive has changed, but I can't see the effect of the launch.bat file. I have tried the batch file to see if it works and it works. Thus, I believe that the autorun.inf file doesn't work.
As I have read from the Internet, it matters that I have Windows 8 and Windows 7.
What can I do to solve this problem?
autorun.inf
is not executed anymore on flash drives. These days it only works for CD's or DVD's, but the user still needs to allow it first.