Adding Context Menu Items for specific Flash Drive with AutoRun.inf no longer works RRS feed

  • Question

  • In Windows XP and Vista an AutoRun.inf file could be created in a Flash Drive and set to display an option in the context menu for when you right clicked that drive in "My Computer", and then upon clicking that option, open a file in the Flash Drive.


    This is what i had...

    Label=Peter John Gray Jr.
    Shell\Removable Disk Lost=If you found this Removable Disk click here...
    Shell\Removable Disk Lost\Command=wscript LOST.vbs


    This is what "LOST.vbs"was written as ...

    Set objShell = CreateObject("WScript.Shell")
    InitialMessage = MsgBox("Please return to: Peter John Gray Jr. " & chr(13) & " " & chr(13) & "Would you like to send an E-Mail" & chr(13) & "reporting the owner of its finding?", 4,"Removable Disk Lost!")
    If InitialMessage = vbYes Then
    Set objShell = CreateObject("WScript.Shell")
    objShell.Run("%comspec% /K START mailto:Peter%20John%20Gray%20Jr.%20^<kandayo11739@gmail.com^>?subject=Removable%20Disk%20Found! & EXIT"), 0
    End If

    ...just so you know what I was trying to do.


    I was REALLY wanting to know if there was anyway of doing this in Windows 7, obviously without the AutoRun.inf file. Ironically I loose my Flash Drive alot at school (forgetting it in the computer and what not...) and when I saw you could do this with an AutoRun.inf file I was really pleased. It made it easier to access "LOST.vbs" meaning I could set it as "Hidden" and at least gave me some piece of mind that it could be returned to me. :)

    P.S. It would be really nice to have a solution that also works still for Windows XP and Vista if possible.

    Saturday, February 12, 2011 1:55 AM

All replies

  • In Windows 7 you can only set a drive label and/or drive icon to flash drives. The other possibilities from Autorun.inf were removed because they were used mostly by virus writers (they are still available for other media types, like DVDs).

    As an alternative, you could place the VBS file directly on the flash drive, but many people won't trust a VBS file in an unknown flash drive and they simply won't click it. A better option would be to create a blank text file whose name is "If you found this Removable Disk, please contact...". and place it in the root of the flash drive.

    Microsoft MVP Windows Expert Consumer | http://www.wintecnico.com

    Sunday, February 13, 2011 1:29 AM
  • You are correct -- this ability was removed from all currently supported versions of Windows as a security measure.


    If this was helpful, please vote by clicking the green triangle. If it solves the issue, click Propose as Answer. Thanks!
    Monday, February 14, 2011 5:20 PM
  • I think it's just been disabled in XP and Vista too, as of Feb 8, 2011.   http://support.microsoft.com/kb/971029

    why is everybody thinking this is new? This update is from 2009:

    Release Date: August 25, 2009

    "A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
    Monday, February 14, 2011 7:58 PM
  • I installed the update in 2009. I don't know why you got it now.

    "A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
    Tuesday, February 15, 2011 6:29 PM