Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I create an autorun function so that my exe file automatically starts when inserting a CD-ROM?

0
Posted

How do I create an autorun function so that my exe file automatically starts when inserting a CD-ROM?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123