Autorun in USB Drive

ES_Ranger

Solid State Member
Messages
6
Is there anyway to make a USB drive run a batch file when it opens? I tried putting an "autorun.inf" file into the root of the drive and it got the correct icon, but nothing happened when I opened the drive.

My autorun.inf file looked like this:
[autorun]
icon=\OTHER\icon.ico
open=\COMMANDS\opendrive.bat
action=Open drive to view files
shell\info=System Info
shell\info\command=\COMMANDS\start.bat
 
I've never really looked into INF files, but im thinking that maybe saying that the "action" should be "open drive to view files" isn't right. have you tried removing that and seeing what happens?
 
the action is just what is displayed as what the autorun file is going to do, it doesn't play any important part in it
 
I had a memory stick a while ago, that was VERY clever indeed. I cant remember what the model was, But it emulated a CD Drive, so that it COULD auto-run.
 
Back
Top Bottom