How do I create an autorun function so that my exe file automatically starts when inserting a CD-ROM?
Under Windows, an autorun function can be realized using a simple text file called “autorun.inf”. This has to be placed in the root directory of your CD-ROM. In the simplest case, the structure of a such a file is as shown below. It can be created with any text editor such as Windows Notepad. [autorun] open=file.exe Here you should replace the part “file.exe” with your file name or the path of the exe file to be run when the CD is inserted. If you look at your Windows CD, or any other data medium with an autorun function, you will notice that they all contain a file called “autorun.inf”.
Related Questions
- I made an EXE file and copied it to a CD to distribute. How do I make the EXE run automatically after inserting the CD into the drive (auto-run)?
- When saving or exporting a file, will the 5300 software program automatically name the file or does a credit union create the name?
- How do I create an autorun function so that my exe file automatically starts when inserting a CD-ROM?