'Autorun .bat file when flash drive is inserted into computer
I am trying to make a flash drive that automatically runs a .bat when it's inserted into computer. I wrote a small autorun.inf script that suppose to execute launch.bat file, but it doesn't do anything and doesn't give me any errors. Did I do any mistakes in capitalization or is there a better way to write this script ?
[autorun]
icon=drive.icon
open=launch.bat
action=Click OK to Run
shellexecute=launch.bat
I also found an image and saved it as drive.icon in the same folder as .inf script Is there something else that works better than .inf script ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
