Autorun file

Discussion in 'Windows - General discussion' started by iPirate, Aug 17, 2006.

  1. iPirate

    iPirate Regular member

    Joined:
    Mar 23, 2006
    Messages:
    3,376
    Likes Received:
    0
    Trophy Points:
    46
    Hey, i have a file that i would like to autorun whenever i plug in my usb drive. ahow do i make the autorun file work. I alread have one but it doesnt work.
     
  2. Morph416

    Morph416 Active member

    Joined:
    Jan 14, 2004
    Messages:
    1,855
    Likes Received:
    0
    Trophy Points:
    66
    These suggestions are going of what I know from autorun.inf files on CDs. Which I have created and worked just fine.

    The autorun.inf file needs to be in the root directory...and should look like this:

    [AutoRun]
    open=setup.exe
    icon=setup.exe,0

    open=filename.exe (the file you wish to open)
    icon=(the file what has an icon you wish to use as the drive icon in Explorer - file must have at least one icon assiociated with it)

    icon= is not necessary
     

Share This Page