INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: Tinnitus on October 27, 2003, 12:33:21 am

Title: Play CD/DVD from commandline?
Post by: Tinnitus on October 27, 2003, 12:33:21 am
Play CD/DVD from commandline?

I'm trying to make MC play a CD/DVD in drive D: on MC startup.
I'm looking for an option similar to this:

"Media Jukebox.exe" /PLAY DEVICE=D:

Does anybody know how to accomplish this?
Title: Re:Play CD/DVD from commandline?
Post by: LisaRCT on October 27, 2003, 08:29:06 am
Try the Mjextman command line command listed here --->>

http://www.musicex.com/mediajukebox/DevZone/CommandLine.html (http://www.musicex.com/mediajukebox/DevZone/CommandLine.html)

I think you should be able to find what you seek.
Title: Re:Play CD/DVD from commandline?
Post by: Tinnitus on October 27, 2003, 02:32:48 pm
Yeah I tried that. Problem is I have to start MC first before calling the play command.
I would like to be able to start playing whats on my cd or dvd drive on MC startup.
NOT having to first start MC and then call the play command via mjextman.exe.
Title: Re:Play CD/DVD from commandline?
Post by: jleerigby on October 27, 2003, 04:00:48 pm
Try this (don't know if it works):

Create a shortcut and put it in your startup folder.  The shortcut should point to:

mjextman.exe /Play [Device=D:]

Let me know if it works.

[post edited by Jlee 28Oct]
Title: Re:Play CD/DVD from commandline?
Post by: Tinnitus on October 28, 2003, 05:40:48 am
No it doesn't. The right syntax for the mjextman.exe call is like this:

mjextman.exe /PLAY DEVICE=D:

And that works fine! The problem is MC have to be running to make it work.

I need this approach for my HTPC setup. When I insert an audio CD into my CD drive I have Girder start up MC and play it automatically.

I know i can do this using normal autoplay. But i also have Girder change to the right channel on my TV and change the output source on my amp.

Everything is automated and i dont have to worry about if im watching tv, playing games or listening to internet radio. Whenever I insert a DVD, video CD or audio CD into my drive, the system just changes accordingly.

The automation is all done with (mirrors) Girder and a Tira-2 infrared sender/reciever.

So, what i need is to be able to start MC and have it play the audio CD in my CD drive. I have it working, but i would like to be able to do it from one command line. If this is not possible I will survive.

But thanks for your input  :)
Title: Re:Play CD/DVD from commandline?
Post by: rossp on October 28, 2003, 06:02:29 am
Can't you create a play.bat file with the following commands in to start then play...

@echo off

mjextman.exe /Start
mjextman.exe /PLAY DEVICE=D:


Hope this helps...

Ross
Title: Re:Play CD/DVD from commandline?
Post by: jleerigby on October 28, 2003, 06:50:24 am
Can't you create a play.bat file with the following commands in to start then play...

@echo off

mjextman.exe /Start
mjextman.exe /PLAY DEVICE=D:


Hope this helps...

Ross


Sounds good - That's what my post above said before I edited it but I missed out the /start line.  The only to to add (if not obvious) is that the .bat file or a shortcut to it needs to be put in the startup folder as he wants it to run automatically on startup.
Title: Re:Play CD/DVD from commandline?
Post by: Tinnitus on October 28, 2003, 07:24:54 am
To quote myself:

Quote
So, what i need is to be able to start MC and have it play the audio CD in my CD drive. I have it working, but i would like to be able to do it from one command line. If this is not possible I will survive.

 ;)
Title: Re:Play CD/DVD from commandline?
Post by: Tinnitus on October 28, 2003, 08:05:46 am
Quote
(if not obvious) is that the .bat file or a shortcut to it needs to be put in the startup folder as he wants it to run automatically on startup.

 ?

I find it always to be a good idea actually reading the post before answering.
Title: Re:Play CD/DVD from commandline?
Post by: rossp on October 28, 2003, 08:46:54 am
smirk...  ;D

Ross
Title: Re:Play CD/DVD from commandline?
Post by: jleerigby on October 28, 2003, 05:15:42 pm
Quote
(if not obvious) is that the .bat file or a shortcut to it needs to be put in the startup folder as he wants it to run automatically on startup.

 ?

I find it always to be a good idea actually reading the post before answering.

You are right - it is.  My mistake as I now see that you said on MC startup.

It's also a good idea not to take the **** out of someone who was at least willing to take the time and trouble to try and help you even if that help on this occasion was not much use.