[Tex/LaTex] MikTeX: How to run pdflatex from cmd prompt on Windows 7 compared to Windows XP

miktexpdftexwindows

In Windows XP I create my test.tex in emacs and then run it in the cmd promt as pdflatex test.tex in the corresponding directory, and it works without a problem. However, in Windows 7 doing the same thing I need to use the full file path in the cmd promt pdflatex "...dir/test.tex" and then it runs but stops because it can't find the test.aux file, probably since the program looks for it in the current directory where the test.tex file is located.

How can one do this in Windows 7?

Best Answer

AFAIK MiKTeX does not like, if the working directory is inside its texmf tree. Use a working directory outside.