I have the following python file in my usb:
Game.py
I want to make it run automatically when I plug in the USB.
I wrote the following in notepad:
[autorun]
shellexecute=Game.py
action=MyProgram Open Program
and saved it as autorun.inf
.
But it does not run and my computer displays:
There is a problem with this drive. Scan and fix it now?
Whats wrong and how can I fix this?
Note:
I am using Windows 10.
hi i am a beginner myself but this should do the trick
[autorun]
;Open=YOURAPP.exe
ShellExecute=YOURAPP.exe
UseAutoPlay=1
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.