Get the new PortableApps.com Platform 10.0: Gorgeous themes, a full portable app store and advanced functionality
Announcing the World's Best Flash Drive: The PortableApps.com Companion | Did you see a malware warning on Friday?

MPlayer Command line switches confusion

Nathan9222's picture
Nathan9222
Developer
- June 10, 2009 - 4:02am

Hello, I was wondering if anyone could point me in the right direction on how to send more than one file to MPlayer so it can play them through command line switches. I have seen the following but I try to use it in a similar way and it will say cannot find file and then list the files i tried to play....

mplayer [default options] [path/]filename1 [options for filename1] filename2 [options for filename2] 

I have successfully played one file via command line but I have had no luck with multiple files. I tried something similar to this...

mplayer C:\Documents and Settings\Nathan\Desktop\Example.mpg C:\Documents and Settings\Nathan\My Documents\Example2.mpg

But no luck. So if anyone could offer some help with this I would really appreciate it, ive been tryin to get this to work for a little project I have been doing that i might release here but this stopped my progress. Thanks Eye-wink


( categories: )

Spaces

The shell uses spaces to separate words. You need to use quotes so that the shell doesn't treat the spaces specially.

mplayer "C:\Documents and Settings\Nathan\Desktop\Example.mpg" "C:\Documents and Settings\Nathan\My Documents\Example2.mpg"

Vintage!

i tried this but i still get

i tried this but i still get an error message that the file couldnt be found, and it seems to be joining the two file paths i am trying to play and make it seem like its just one. Ill try different things but idk why this isnt working.

Edit: NVM i just found out that this is due to a problem in NSISPortable not passing the correct parameters to mplayer.exe, cause if you send them directly to mplayer it seems to work just fine but any other way it doesnt work. Thanks for your help Smiling

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)