We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Autorun.inf - Play video on startup problem

Medium Priority
442 Views
Last Modified: 2013-11-13
I have burned a cd and set the proprties to open with Windows media player.

On the cd I have a subdirectory "player" that has the Microsoft media player files in it.

I have seted and it works from the command line

d:\player\Mplayer2.exe /play  d:\loggingin.avi

With the following runme.bat file contents

.\player\Mplayer2.exe /play  .\loggingin.avi

I can get it working when the disc is loaded by having this Autorun.inf

[autorun]
OPEN=.\runme.bat
ICON=favicon.ico

BUT there's the DOS screen hanging around.

I just want it to work without a .bat file, or the .bat file to close once the Mplayer opens.

As people using the cd will have media player disabled on their PCs I need to supply the Media Player files on the CD.

Can someone help me do this withut the DOS window?


Comment
Watch Question

You can modify the autorun.inf as follows:

  [autorun]
  OPEN=.\player\Mplayer2.exe /play  .\loggingin.avi
  ICON=favicon.ico

_______________

  Nayer Naguib

Commented:
Also,

the batch can be modified if you change

This:
------------------------------------------------------------------------
"d:\player\Mplayer2.exe /play  d:\loggingin.avi"
------------------------------------------------------------------------

To this:
------------------------------------------------------------------------
START d:\player\Mplayer2.exe /play  d:\loggingin.avi"
------------------------------------------------------------------------

The start command will tell the batch to avoid waiting for the program to stop running.
CERTIFIED EXPERT

Commented:
If you know the operating system isn't an old one you could try

[autorun]
  OPEN=cmd.exe /C ./runme.bat
  ICON=favicon.ico

Otherwise,

what does it do if you just set the value to

[autorun]
  OPEN=loggingin.avi
  ICON=favicon.ico

and let Windows decide how to open it?

Author

Commented:
It plays from the PCs media player, which I don't want.

Commented:
Have you tried my solution to modify the batch file so the command to run the program starts with "START" so that the batch closes as soon as the program open?

Just run this line (removing the quotes):
------------------------------------------------------------------------
START d:\player\Mplayer2.exe /play  d:\loggingin.avi
------------------------------------------------------------------------
You can also try the modification that I have suggested. I think that will do the job.

_______________

  Nayer Naguib

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.