INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Play CD/DVD from commandline?  (Read 1390 times)

Tinnitus

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 53
Play CD/DVD from commandline?
« 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?
Logged
Give me some Motörhead

LisaRCT

  • Guest
Re:Play CD/DVD from commandline?
« Reply #1 on: October 27, 2003, 08:29:06 am »

Try the Mjextman command line command listed here --->>

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

I think you should be able to find what you seek.
Logged

Tinnitus

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 53
Re:Play CD/DVD from commandline?
« Reply #2 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.
Logged
Give me some Motörhead

jleerigby

  • Guest
Re:Play CD/DVD from commandline?
« Reply #3 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]
Logged

Tinnitus

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 53
Re:Play CD/DVD from commandline?
« Reply #4 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  :)
Logged
Give me some Motörhead

rossp

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 772
Re:Play CD/DVD from commandline?
« Reply #5 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
Logged

jleerigby

  • Guest
Re:Play CD/DVD from commandline?
« Reply #6 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.
Logged

Tinnitus

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 53
Re:Play CD/DVD from commandline?
« Reply #7 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.

 ;)
Logged
Give me some Motörhead

Tinnitus

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 53
Re:Play CD/DVD from commandline?
« Reply #8 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.
Logged
Give me some Motörhead

rossp

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 772
Re:Play CD/DVD from commandline?
« Reply #9 on: October 28, 2003, 08:46:54 am »

smirk...  ;D

Ross
Logged

jleerigby

  • Guest
Re:Play CD/DVD from commandline?
« Reply #10 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.
Logged
Pages: [1]   Go Up