[MPlayer-cygwin] mingw32-mplayer and windows OS

Stefan Gürtler Stefan.guertler at stud.tum.de
Mon May 19 11:17:17 CEST 2003


Hi mingw32-mplayer users out there.
I worked hard to figure out, how working with the command line prompt under
windows OS can be made much more comfortable. As my native language and the
sources I used (and link here) are both in German, I do not translate all to
decent English. By the way: I think that half of the mingw32-mplayer users
that post on the mailing list are able to understand German.

So here we go with the German text (You will find the English translation
later in the message).

Ich hab noch ein paar andere schöne Sachen gefunden, die einem den Umgang
mit der Kommandozeile erleichtern können, wenn man sie den benutzen will:

1. Rechter Maußklick auf Ordner produziert "Eingabeaufforderung / CMD in
Ordner öffnen" damit die Verzeichniswechslerei unnötig wird:
http://www.faqweb.de/tip0831.htm und http://www.faqweb.de/tip0785.htm. Frag
mich nicht wo der Unterschied zwischen den beiden ist. Ich habe die
.reg-Vorlage des zweiten Links für mein Windows98 benutzt!

2. \mplayer in die Path-Variable aufnehmen, so dass in jedem Verzeichnis mit
Animes drin nur noch "mplayer filename.ext" getippt werden muss. In
Windows98 konnte ich noch die Autoexec.bat modifizieren
(path=D:\Stefan\mplayer;%path%). Ich weiß nicht, ob XP das noch benutzt. Es
gibt aber auch ein Registry-Pedant. Siehe hier:
http://www.faqweb.de/tip1054.htm
In Win98 ist es wichtig, dass der Pfad zum MPlayer vor den
Windows-Verzeichnissen kommt/durchsucht wird, denn im zweiteren gibt es noch
den M$ MediaPlayer1, dessen ausführbare Datei dummerweise auch mplayer.exe
heißt. Nur wenn der Pfad zum MPlayer vor dem Pfad zu \Windows\System kommt,
wird die richtige mplayer.exe geöffnet (vgl. oben D:\Stefan\mplayer vor
%path%)

3. Und wenn ihr schon dabei seit, schaut euch auch noch
http://www.faqweb.de/tip0247.htm an. Vervollständigung von Pfaden unter
WindowsNT/2000/XP. Mein Lieblingsfeature von Linux/Unix :-)

Lust auf mehr bekommen: Besucht http://www.faqweb.de/faq_fr.htm und schaut
euch mal um, was da noch für Tipps auf euch warten, um euch die tägliche
Arbeit am PC zu erleichtern

English Version:

1. Command Prompt Here:
Either backup and edit your registry manually at
HKEY_LOCAL_MACHINE\ Software\ Classes\ Folder\ shell
Add a Key named "COMMAND" with a standard value "COMMAND.COM /K CD %1"
(windows 98) or "CMD.EXE /K CD %1" (NT, 2000, XP)

or

use M$ Microsoft PowerToys for Windows XP that can be obtained here:
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp  and
http://download.microsoft.com/download/whistler/Install/2/WXP/EN-US/CmdHereP
owertoySetup.exe

2. Add \mplayer to the PATH-Variable of your OS, so that you can just type
>mplayer filename.ext
in any folder and still MPlayer is found and loaded. At least while using
Win98 it is important that the OS searches the MPlayer folder ahead of
Windows\System, as there is another programme named mplayer.exe there (M$
MediaPlayer v1), too.
For Win98 I suggest to edit the autoexec.bat and add
"path=D:\mplayerfolder;%path%", where D:\mplayerfolder must be replaced with
your accurate path to the folder, that contains the mplayer.exe.  Keep in
mind that it has to be written ahead of %path%
There is also a registry-Entry that can contain a PATH-Variable in NT/200/XP
Have a look at
HKEY_LOCAL_MACHINE\ System\ CurrentControlSet\ Control\ Session Manager\
Environment
There should be a key called "Path", its entry has to be of the type
REG_EXPAND_SZ and contain the Paths to be searched. But I do not have a
computer with those OSs, so do not ask for more details, I simply do not
know it (google may help)

3. My favourite linux/unix feature: auto-completion of file-, folder- and
programme names for NT/2000/XP:
HKEY_CURRENT_USER\ Software\ Microsoft\ Command Processor
Key "CompletionChar", Type REG_DWORD, Entry something between 0x1 and
0x1F -> Have a look at the ASCII code  for the which number represent which
key on your keyboard (e.g. 9 for the tab)

HKEY_CURRENT_USER\ Software\ Microsoft\ Command Processor
Key "PathCompletionChar", Type REG_DWORD, Entry same as above.

In 2000/XP there is a parameter for the cmd.exe, too:
CMD /F:ON
With this turned on you can use Ctrl+d for folders and Ctrl+f for folders
and executables. Very useable if combined with the first suggestion :-)
google will help here, too.

I hope some of you can use this information.

Ciao sagt Stefan



More information about the MPlayer-cygwin mailing list