dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Autorun.ini Files

  1. #1
    Join Date
    Mar 2003
    Location
    Crofton, MD
    Posts
    76

    Exclamation Autorun.ini Files

    I would like to know how to write an Autorun.ini file to burn onto a CD to open a program, also How to write code that would give me the capability to choose between multible programs to install ???

  2. #2
    Join Date
    Dec 2002
    Location
    NC
    Posts
    125
    It's an autorun.inf you want, not an autorun.ini

    copy this into notepad and name it Autorun.inf

    [autorun]
    start setup.exe
    icon=DivX.ico


    the setup.exe can be replaced by any .exe file and the divX.ico can be replaced with your Icon of choice.
    There are other ways to do this to include replacing "start" with "open" to run a .html file or other. the file associated with the extension should take care of it.

    As far as your second question goes I would write a simple VBScript that launches instead of an .exe. Have a simple If statement built in to a msgbox that will launch your .exe from your vbScript. If you REALLY want, I can write it for you all you would have to do is open the .vbs file and edit it to your executables. All I need is a little motivation.

    good luck
    R.L.T.W. A+, NET+, CCNA

    doin' my best

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)