Windows help with autorun file

Discussion in 'Software' started by Monkey, 13 May 2007.

  1. Monkey

    Monkey What's a Dremel?

    Joined:
    24 May 2004
    Posts:
    137
    Likes Received:
    0
    I am trying to create a autorun.inf the the exe file is in a sub directory, now according to MS' site i need to do open=[exepath\]exefile but when i do nothing happens, then if i double click on the drive i get a window come up asking which program i would like to use to open with.

    Can anyone help me out here.
     
  2. GiGo

    GiGo was once a nerd.....

    Joined:
    12 May 2002
    Posts:
    2,313
    Likes Received:
    1
    In the autorun.inf file copy the following:

    [autorun]
    open=[exepath] (if there are any spaces in the directory name be sure to put it in "quotes")

    If you want an icon add the following:
    [autorun]
    open=exepath.exe
    icon=iconpath.ico

    Hope it helps
    Regards
    GiGo
     
  3. Monkey

    Monkey What's a Dremel?

    Joined:
    24 May 2004
    Posts:
    137
    Likes Received:
    0
    When you say in quotes do you mean like this

    open=["exepath"\]exefile
    or
    open=["exepath"]exefile

    thanks for the extra info about the icons but i already know that, just cant get it to work with the exe in a sub directory
     
  4. GiGo

    GiGo was once a nerd.....

    Joined:
    12 May 2002
    Posts:
    2,313
    Likes Received:
    1
    say for instance you directory path reads da program files
    you would need to put it in quotes
    ie
    [autorun]
    open="\da program files\exefile.exe"

    if you were running it from a folder called program it would be
    [autorun]
    open=\program\exefile.exe

    TBH just put the whole thing in quotes.

    If your still getting stuck grap a CD you got from a mag or game and find the autorun.inf file, the just copy the file from there and change it.

    Regards
    GiGo
     
Tags:

Share This Page