Writing an "Autorun"

  • Hi. I would like to write an autorun.inf file that will open an mpg file when the cd is inserted into the drive. There will only be three files on the cd, a filename.mpg, a filename.mov and the autorun.inf. So far I have copied and edited another autorun.inf file to the following: [AutoRun] OPEN=filename.mpg label=filename I have written the three files to a cd and the autorun isnt working. What am I doing wrong? Any help on this is greatly appreciated. Thank you.


  • Hello philbert-ga, It appears that your problem is with the 'OPEN=' statement. This statement will only work with executable programs on your CD (*.exe). If you are trying to open a data file (in this case a video) with the default program on the user's computer, you need to use the ShellExecute command as follows: [autorun] ShellExecute=filename.mpg icon=filename.mpg However, there is a slight caveat; the ShellExecute command does not work on all versions of Windows, so you can also use this equivalent command: [autorun] open=command /c start filename.mpg icon=filename.mpg http://www.cryer.co.uk/brian/windows/howtocacdtwar.htm There is also a way to test your autorun.inf file without burning a CD - the details are available at: http://www.cryer.co.uk/brian/windows/howtotcdaurwobacd.htm Hopefully this helps you in your quest...happy autorunning! answerguru-ga Google Answers Researcher