Usb Auto Run?

Discussion in 'OT Technology' started by phatguy88, May 29, 2006.

  1. phatguy88

    phatguy88 OT Supporter

    Joined:
    Nov 8, 2005
    Messages:
    19,110
    Likes Received:
    74
    Location:
    boston
    I wanna make my usb key autorun/autoplay itself.. I used to have this code for an inf file, but I lost it. Please no posts about how windows xp doesnt alow autorun on remvable devices.. because it does.

    When I had the correct inf file, it would prompt with the autorun box and the first thing on the list was the .exe file I configure in the inf file. so I just had to press enter and the program ran...

    Thanks in advance
     
  2. peerk

    peerk New Member

    Joined:
    Mar 14, 2005
    Messages:
    984
    Likes Received:
    0
    I'm not sure how you added the .exe to the autoplay list, but here is the closest trick I have been able to find to get autorun on a usb drive.

    Create an autorun.inf file on the usb drive and place the following in it.

    Code:
    [autorun]
    shell\Auto=&Autoplay
    shell\Auto\command=myprogram.exe
    shell=Auto
    
    Now when you double click on the drive in my computer myprogram.exe will be run. This only works in my computer.


    And here is some info regarding autorun on usb devices. It is about half way down the page.

    https://www.microsoft.com/whdc/device/storage/usbfaq.mspx
     

Share This Page