I just installed MiKTeX and TeXstudio, but when I try to compile a document I get the following error:
Error: One command expansion invalid.
Make sure that you have installed a (La)TeX distribution e.g. MiKTeX or TeX Live, and have set the correct paths to this distribution on the command configuration page.
A (La)TeX editor like TeXstudio cannot work without the (La)TeX commands provided by such a distribution.
I did some Googling, and found where I needed to go, and in options -> configure LaTex -> Commands -> LaTex, I have the following:
"E:\Program Files\MiKTeX 2.9\miktex\bin\x64\latex.exe" -src -interaction=nonstopmode %.tex
(the file path is correct, I double- and triple-checked) Can someone tell me what I'm doing wrong?


"%.tex"? (I mean with the straight quotes like the latex.exe path. I'm wildly guessing by the way.