In Windows 8.1 I have an environment variable LATEX equal to
C:\Program Files\MiKTeX 2.9\miktex\bin\x64
and the path variable set to
The problem is that the LATEX folder is not visible from command line IF i don't put the trailing semicolon. If I check the path from command line it says
PATH=C:\Program Files\Java\jdk1.8.0_11\bin;C:\Program Files\apache-ant-1.9.4\bin;%LATEX%
But when I put the trailing semicolon it works.
It is not the first time I'm setting the PATH variable and I don't remember putting the trailing semicolon before. How come it works with the semicolon and not without it?