Page 1 of 1

%P parameter too strict

Posted: 2006-11-04, 09:50 UTC
by roentgen
Take the following start menu entry:
command: %programfiles%\Media Tools\MPlayer\mplayer.exe
parameters: ?dvd://1 -dvd-device %p

The %p is converted to 'F:\' (mind the trailing backslash) and mplayer really doesn't like that, it expects simply 'F:'.
Also, when trying to play a DVD-video copied onto hard disk and the path contains spaces, there are no quotes around the expanded path when using %P (please don't tell me I need to use %p and DOS features in XP era and year 2006).

Also, I know this is not one of the greatest features in mplayer (and this may be considered a bug on their side), but hell, this is not the only case, there are no standards concerning the problem (and who would follow them if they were :P?) and having one more parameter that sends dir paths without the backslash at the end wouldn't hurt.

Re: %P parameter too strict

Posted: 2006-11-04, 10:12 UTC
by wanderer
roentgen666 wrote:Take the following start menu entry:
command: %programfiles%\Media Tools\MPlayer\mplayer.exe
parameters: ?dvd://1 -dvd-device %p

The %p is converted to 'F:\' (mind the trailing backslash) and mplayer really doesn't like that, it expects simply 'F:'.
Yeagh, i guess a parameter without the trailing slash might be good.
roentgen666 wrote:Also, when trying to play a DVD-video copied onto hard disk and the path contains spaces, there are no quotes around the expanded path when using %P (please don't tell me I need to use %p and DOS features in XP era and year 2006).
Well, we'll tell you that! :) There are still some programs out there which may look and work in a modern way but their authors have not given them the ability to understand the meaning of spaces in the command line. Some may treat the whole command line as a long filename and others treat the spaces as parameter separators, so these TC options are still very useful.

Posted: 2006-11-04, 11:03 UTC
by roentgen
2wanderer
Well, we'll tell you that! There are still some programs out there which may look and work in a modern way but their authors have not given them the ability to understand the meaning of spaces in the command line.
TC included :P. But that is not problem here as I don't think there are programs that understand paths that contain spaces without quotes around them.

Posted: 2006-11-06, 13:36 UTC
by wanderer
roentgen666 wrote:2wanderer
Well, we'll tell you that! There are still some programs out there which may look and work in a modern way but their authors have not given them the ability to understand the meaning of spaces in the command line.
TC included :P. But that is not problem here as I don't think there are programs that understand paths that contain spaces without quotes around them.
only if they accept 1 parameter (filename) ;)

Posted: 2006-11-06, 15:12 UTC
by majkinetor !
Hej roenten666 whats up !?

long time no see....

Posted: 2006-11-06, 15:38 UTC
by roentgen
2majkinetor !
long time no see....
What can I say... I'm more of a reader...
Anyway... should I understand that you support my complaints or did you just missed me? :P

Posted: 2006-11-14, 14:30 UTC
by majkinetor !
What can I say... I'm more of a reader...
Yeah.
And what do you read now :P


Anyway.... didn't read your request, but I support it anyway :P
So, I gues that I just missed you.