USB autorun


  1. Posts : 66
    Windows 7 Pro 32 bit and windows xp pro 32 bit and windows 98 SE
       #1

    USB autorun


    when my USB is plunged or is opened in the file explorer i want a bat file run how would i do this
      My Computer


  2. Posts : 7,379
    Windows 7 ultimate x64
       #2

    Try this,

    open notepad and type:

    "(Autorun)
    Open=(directory of program\program name.file extention)
    Action=Start (Name of program if wanted)
    Label=(what you want the label to say)"

    without " "s.
    if you want the icon as well, add "Icon=(director of program\program name).exe"
    so it would look like:

    (Autorun)
    Open=(directory of program\program name.file extention)
    Action=Start (Name of program if wanted)
    Label=(what you want the label to say)
    Icon=(directory of program\program name).exe

    swap out the brackets "( )" around 'autorun' with square brackets ""


    afterwards, save it as "Autorun.inf" in the root of your usb key.

    MAKE SURE THE FILE EXTENTION IS " .inf "
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:57.
Find Us