Autorun.inf - Play video on startup problem

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?


LVL 1
kjuliffAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nayernaguibCommented:
You can modify the autorun.inf as follows:

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

_______________

  Nayer Naguib
CaudaxCommented:
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.
SStoryCommented:
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?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

kjuliffAuthor Commented:
It plays from the PCs media player, which I don't want.
CaudaxCommented:
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
------------------------------------------------------------------------
nayernaguibCommented:
You can also try the modification that I have suggested. I think that will do the job.

_______________

  Nayer Naguib

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Multimedia Programming

From novice to tech pro — start learning today.