My answer has nothing to do with TeX at all, but I hope to answer your question.
In order to run commands on an arbitrary folder, they need to be "known" by the operating system. How do the system know if a command is available? A search in the path. So, first things first:
Extract the content of rmligs-0.84.tar.gz
to a folder. I suggest to avoid spaces in directory names. In my case, I extracted to C:\paulo\softwares\rmligs
.
If I dir
my directory, I have:
14/11/2002 18:54 359 BUGS
14/11/2002 19:19 466 Changes
10/01/2000 19:22 747 Copyright
02/11/1999 18:28 18.007 GPL2
28/11/1999 19:43 269 makefile
14/11/2002 20:06 699 MD5sums
18/03/2000 12:40 2.621 PGPKeys
14/11/2002 18:52 4.002 README
14/11/2002 17:12 28.799 rmligs
14/11/2002 19:55 1.641 rmligs.1
01/12/1999 09:53 791 testfile.tex
14/11/2002 19:04 5 VERSION
Now, lets add that directory to the Windows path. As Canageek mentioned, go to Control Panel -> System and Security\System -> Advanced system settings -> Environment settings
. For God's sake, take care. :)
I usually prefer to change my user variables
instead of the system variables
, so double-click the PATH
variable under user variables
, go to the end of the line, type ;
and add the full path we set in the previous step:

(Sorry, my Windows is in Portuguese, but I hope you get the idea)
Then click OK
a bunch of times. :)
Now let's go to the command prompt:

It didn't work you bastard! I'll explain why. There's a system variable called PATHEXT
, if I echo it (it might be different on your computer):
C:\Users\Paulo>echo %PATHEXT%
.SCM;.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.wlua;.lexe;.RB;.RBW
Those are the files which can be executed in the command prompt and their order. As you can see, if you have bla.exe
and bla.bat
in the path, the first one will be executed because it has a higher priority. Now lets add our rmligs
Perl script.
Go to the rmligs
directory (in my case, C:\paulo\softwares\rmligs
) then create a file called rmligs.cmd
(I'm a fan of .cmd
instead of .bat
) with the following content:
@echo off
perl %~dp0\rmligs %1 %2 %3 %4 %5 %6 %7 %8 %9
Done! Lets break it:
perl
is the interpreter, %~dp0\rmligs
gives the the full path to the script, and %1
to %9
are the arguments provided to the .cmd
script. Great!
Now lets open another command prompt:

Cool take all my money! Now lets test it. I copied testfile.tex
to my Documents
folder, lets see if it works:

Yay! Hope it helps. :)
Symbols can be looked up in "The Comprehensive LaTeX Symbol List":

UTF-8 as input encoding
If UTF-8 is used as input encoding, then the symbols can be defined using packages ascii
for the symbols and newunicodechar
for an easier interface of \DeclareUnicodeCharacter
:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{ascii}
\usepackage{newunicodechar}
\newunicodechar{☺}{\SOH}
\newunicodechar{☻}{\STX}
\newunicodechar{♥}{\ETX}
\newunicodechar{♣}{\ENQ}
\newunicodechar{♠}{\ACK}
\newunicodechar{•}{\BEL}
\newunicodechar{○}{\HT}
\begin{document}
☺☻♥♣♠•○
\end{document}

Remarks:
The symbol •
is already defined with \textbullet
. Therefore \newunicodechar
generates a warning, when replacing it with \BEL
:
Package newunicodechar Warning: Redefining Unicode character on input line 11.
8-bit encodings
Some of the control character slots are covered by package inputenc
. Others cannot be used, because line ends control characters are needed for line ends, for example.
However, if an 8-bit encoding is used with package inputenc
, then usually the control characters are not assigned. With package ascii
for the symbols it can be done the following way. To avoid trouble with copy and paste from the web page, I have used the ASCII replacement notation with ^^
after \begin{document}
:
\documentclass{article}
\usepackage{ascii}
\usepackage[ansinew]{inputenc}
% \NUL
\DeclareInputText{1}{\SOH}% ^^A
\DeclareInputText{2}{\STX}% ^^B
\DeclareInputText{3}{\ETX}% ^^C
\DeclareInputText{4}{\EOT}% ^^D
\DeclareInputText{5}{\ENQ}% ^^E
\DeclareInputText{6}{\ACK}% ^^F
\DeclareInputText{7}{\BEL}% ^^G
\DeclareInputText{8}{\BS}% ^^H
% \HT
% \LF
\DeclareInputText{11}{\VT}% ^^K
% \FF
% \CR
\DeclareInputText{14}{\SO}% ^^N
\DeclareInputText{15}{\SI}% ^^O
\DeclareInputText{16}{\DLE}% ^^P
\DeclareInputText{17}{\DCa}% ^^Q
\DeclareInputText{18}{\DCb}% ^^R
\DeclareInputText{19}{\DCc}% ^^S
\DeclareInputText{20}{\DCd}% ^^T
\DeclareInputText{21}{\NAK}% ^^U
\DeclareInputText{22}{\SYN}% ^^V
\DeclareInputText{23}{\ETB}% ^^W
\DeclareInputText{24}{\CAN}% ^^X
\DeclareInputText{25}{\EM}% ^^Y
\DeclareInputText{26}{\SUB}% ^^Z
\DeclareInputText{27}{\ESC}% ^^[
\DeclareInputText{28}{\FS}% ^^ \DeclareInputText{29}{\GS}% ^^]
\DeclareInputText{30}{\RS}% ^^^ or ^^1e
\DeclareInputText{31}{\US}% ^^_
\DeclareInputText{127}{\DEL}% ^^?
\begin{document}
\noindent
\NUL^^A^^B^^C^^D^^E^^F^^G\\
^^H\HT\LF^^K\FF\CR^^N^^O\\
^^P^^Q^^R^^S^^T^^U^^V^^W\\
^^X^^Y^^Z^^[^^\^^]^^1e^^_\\
^^?
\end{document}

Best Answer
Indeed, there doesn't seem to be a Windows symbol neither in the comprehensive LaTeX symbol list nor in Unicode. This symbol is in the WingDings font, but it is not available everywhere. Hence it appears one must use an external logo.
The German Wikipedia has a nice outline, monochrome Windows logo. It can be converted to an
.eps
or.pdf
and then included in the document: