avok
asked on
autorun.inf context menus missing from a USB flash drive after windows restart.
I have USB flash drive with autorun.inf file in the root folder. The autorun.inf contains some custom contex menu items. Problem is, when I restart my PC with my USB flash connected, my menus are gone. I need to remove it and insert it again before any of the custom context menus are present. Why is that? How can I solve it? My OS is Windows XP Pro SP2.
This is my autorun.inf
[autorun]
label=TrueCrypt Traveller Disk
icon=TrueCrypt\TrueCrypt.e xe
action=Mount TrueCrypt volume
open=TrueCrypt\TrueCrypt.e xe /q background /lZ /m rm
shell\start=Start TrueCrypt
shell\start\command=TrueCr ypt\TrueCr ypt.exe
shell\autostart=Automount TrueCrypt volume
shell\autostart\command=Tr ueCrypt\Tr ueCrypt.ex e /q background /lZ /m rm
shell\dismount=Dismount all TrueCrypt volumes
shell\dismount\command=Tru eCrypt\Tru eCrypt.exe /q /d
This is my autorun.inf
[autorun]
label=TrueCrypt Traveller Disk
icon=TrueCrypt\TrueCrypt.e
action=Mount TrueCrypt volume
open=TrueCrypt\TrueCrypt.e
shell\start=Start TrueCrypt
shell\start\command=TrueCr
shell\autostart=Automount TrueCrypt volume
shell\autostart\command=Tr
shell\dismount=Dismount all TrueCrypt volumes
shell\dismount\command=Tru
This appear to be a Windows XP problem. Sometimes happen with cd-roms too, maybe you can do a script to eject and redetect pendrive after booting
ASKER
That could do the trick. Maybe some kind of refresh or reload of the USB drive. Problem is, I have no idea how to write something like this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.