![]() |
IOBit Software
|
|
|
||||||
| Programming Place to discuss programming including HTML, Java, C++, MySQL and others. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Simple question I think. Is it possible to add to the Autoplay menu when you insert a flashdrive? I followed this tutorial HERE and I'd like to have the MountTC.bat as an option in AutoPlay, just to save myself the 4-5 clicks of going into the drive. Is this possible?
For those that dont want to read the tutorial, basically you encrypt a flash drive with TrueCrypt, and create a batch file to mount it. I'd like to have the bat file available on the autoplay menu.
__________________
"...next time someone asks you if you’re a god, you say YES!" |
| Sponsored links |
|
|
|
#2
|
||||
|
||||
|
If you don't already have an Autorun.inf file in the root directory of the drive, create one, something like this:
Code:
[autorun] icon=myicon.ico label=My Flashdrive Code:
open=MountTC.bat First, add this line: Code:
shell\MountTC\command=MountTC.bat Code:
shell\MountTC=&Mount TC Lastly, if you want this to be the default command, that is, the one that runs when you double-click it, add this line: Code:
shell=MountTC Code:
[autorun] icon=myicon.ico label=My Flashdrive shell\MountTC\command=MountTC.bat shell\MountTC=Mount &TC shell=MountTC http://en.wikipedia.org/wiki/Autorun.inf http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
__________________
I.think(code); I.eat(code.spaghetti); |
|
#3
|
|||
|
|||
|
Am I missing something? Below is the code that was created by Truecrypt originally...
Code:
[autorun] label=TrueCrypt Traveler Disk icon=TrueCrypt\TrueCrypt.exe action=Mount TrueCrypt volume open=TrueCrypt\TrueCrypt.exe /q background /e /m rm /v "Personal" shell\start=Start TrueCrypt Background Task shell\start\command=TrueCrypt\TrueCrypt.exe shell\dismount=Dismount all TrueCrypt volumes shell\dismount\command=TrueCrypt\TrueCrypt.exe /q /d Code:
[autorun] icon=TrueCrypt\TrueCrypt.exe label=TrueCrypt Traveler Disk shell\MountTC\command=MountTC.bat shell\MountTC=&Mount TC shell=MountTC
__________________
"...next time someone asks you if you’re a god, you say YES!" |
|
#4
|
||||
|
||||
|
The original file is the one you want to use. It already had the menu options in it. The problem is that Windows 7 changed the behavior of AutoRun for USB drives (that don't emulate an optical drive, like a U3 drive does.) Any line that doesn't begin with icon or label is ignored.
You may be able to re-enable autorun, but I don't know how to do that in Windows 7. You might want to ask in the software forum, though they will probably warn you it's a security vulnerability. http://blogs.technet.com/b/srd/archi...windows-7.aspx http://blogs.msdn.com/b/e7/archive/2...-autoplay.aspx
__________________
I.think(code); I.eat(code.spaghetti); |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CD/DVD autoplay | dlb | Software | 2 | 04-19-09 22:42 |
| No CD autoplay | Old Salt | Hardware | 0 | 10-20-08 16:05 |
| autoplay | Grumbles | Software | 19 | 06-17-08 16:54 |
| Autoplay and more | Gator | Software | 5 | 12-21-07 22:06 |
| DVD autoplay | wmarkj | Software | 1 | 02-19-06 07:26 |