USB Autorun.inf
I've had some issues in getting my USB key to automatically run programs when it started. Once I put
I want to have pageant and KeePass loaded off of the drive, but if I've removed the drive and the programs are still running, I don't want to re-run them anyway. In stead I just click on
I found that using
here is my
Autorun.inf in the root of the USB drive Windows XP would recognize it but ask me what I wanted to do instead of running what I had for open in the [autorun] section. After hunting around on the net and a little trial and error I settled on this.I want to have pageant and KeePass loaded off of the drive, but if I've removed the drive and the programs are still running, I don't want to re-run them anyway. In stead I just click on
startup.bat which I created that starts both programs.I found that using
shell would this allows me to selectively run one program that's on my drive by right clicking on the drive in My Computer. Here is my Autorun.inf
[autorun]
open=
shell\KeePass\command=programs\KeePass\KeePass.exe
shell\KeePass=KeePass
shell\putty\command=programs\putty\putty.exe
shell\putty=Putty
shell\tw\command=programs\ShellRun.exe tiddlywiki\index.htm Running TiddlyWiki
shell\tw=TiddlyWiki
shell\pageant\command=programs\putty\pageant.exe \rsa\putty.PPK
shell\tw=pageant
here is my
startup.bat file
start \programs\KeePass\KeePass.exe
start \programs\putty\pageant.exe \putty.PPK



1 Comments:
This is a nice little tidbit I ran across while implementing KeePass. Thanks for documenting this procedure!
By
Anonymous, at 8:15 AM
Post a Comment
<< Home