The following is a typical autorun.inf in CD/ DVD.
Actually, what Windows do is, when a disc is inserted, Windows will detect and read the autorun.inf to see what should be prompt (In the case of USB, Windows will perform the same procedure but with different result). Have you ever browse into the disc and see the content of it? You will soon discover that these CDs/ DVDs which prompt when it is inserted, has a common file with name “autorun.inf” at the root of the disc. When you insert the disc into the machine, it will prompt a welcome page, which is provided by the software company. In most cases, you bought CD/ DVD a software. Before discussing how to make the USB “autorun”-able, let’s see how to do this in CD. However, the autorun feature of CD is still enabled. We knew that Windows disabled the USB autorun feature by default, for security issue.