Link to home
Start Free TrialLog in
Avatar of johndenny
johndenny

asked on

create autorun for dvd player

i am trying to put in dvd player mix of file type, but i want to make sure when open in dvd player it can detect and play. I have 2 files, one .mpg file and the other is .exe. I am hoping when i put the dvd in dvd player, it will play .mpg, and in pc .exe. Is it possible? if not, how to make in dvd player to pickup .mpg ? has to be with autorun ? if so, how?

Thanks
Avatar of Daxit
Daxit
Flag of Italy image

Hello

Normally this is done (in windows) with an autorun.inf file placed into the root of the cd/dvd you want to be autoplayed by the system.

You can pick up a any cd/dvd that would go in autoplay mode once inserted, open it and find the autorun.inf file, look at hoew it is done, create a similar file with the information needed to autoplay your mpg or exe at wish and then place it in the root of the dvd you are going to burn.

It should work.

Please note that on pcs where the owner disabled the autorun functions, this will not work of course.

Bye
Hi

Change setuplauncher.exe with the name of your executables and so on.

[Autorun]
open=SetupLauncher.exe
label=My DVD
icon=wifi_win.ico


Here is a link to a program that helps you editing a basic autorun.inf file
http://autorun.moonvalley.com/download.htm

Here is a link where you will find more informations:

http://articles.techrepublic.com.com/5100-10878_11-5268081.html

This is from http://www.samlogic.net/articles/autorun-commands.htm

A brief list of commands

OPEN =

The OPEN command specifies the path and file name of the application that AutoRun launches when a user inserts a disc in the drive. You can also specify parameters/arguments to the application.
 
ICON =

The ICON command specifies an icon which represents the AutoRun-enabled drive in the Windows user interface. The icon is normally an .ico file, but can also be a .bmp, .exe or .dll file containing icon information. The icon file must be in the same directory as the file specified by the OPEN command.
 
LABEL =

The LABEL command specifies a text label which represents the AutoRun-enabled drive in the Windows user interface. This text label is for example in Windows Explorer showed to the right or below the drive icon.
 
SHELLEXECUTE =

The SHELLEXECUTE command opens a document or starts an application. Mostly used to open documents automatically. Requires Windows ME/2000 or newer.
 
SHELL =

The SHELL command specifies a default command for the drive's shortcut menu. The shortcut menu of the drive is the menu that is opened when the user right clicks on the drive icon.
 
SHELL\VERB =

The SHELL\VERB command adds a custom command to the drive's shortcut menu. This custom command can for example be used to launch an application on the CD/DVD.
 
ACTION =

ACTION is a command that was introduced with Windows XP SP2. It is not supported in Windows before that. This command specifies a text that should be shown as the first option in the Windows Autoplay dialog, together with the icon specified by the ICON. This option is always selected by default and if the user accepts the option, the application specified by the OPEN or SHELLEXECUTE entry in the media's Autorun.inf file is launched. As an alternative, the SHELLEXECUTE command can also specify a document instead of an application.
ASKER CERTIFIED SOLUTION
Avatar of Daxit
Daxit
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Now you have enough to go on I guess.

Bye
Avatar of johndenny
johndenny

ASKER

let me try daxit. I will let you know soon. thanks
Hi

Here you are.

It should work out, all autoplying dvd for windows are done in this way.

Remember that a movie is not an executable itself, so you might need to follow a syntax rule to launch a viewer which will open the movie.

I suggest you to try with a rewritable dvd so you can try more times until you reach the desisred result without trowing away any dvd.

Bye