[Tex/LaTex] TeXstudio Could not start Build and View

texstudio

I'm using MikTeX 2.9 and TeXstudio 2.6.6. The path to MikTeX is correct and in "Check LaTeX installation" the process exite normally.

My problem is when I tried to "Build & View" (F1) an error message pops up with the message:

Could not start Build and View:PdfLaTeX:pdflatex.exe -synctex=1 interaction=nonstopmode

and no log file is found.

Using TeXWorks the process is done without any problems.

I like using TeXstudio, what can I do to fix this?

Best Answer

I Found the answer in there Question

I changed my Command line to:

"D:\Program Files\MiKTeX\miktex\bin\pdflatex.exe" -synctex=1 -interaction=nonstopmode %.tex

and it work. Thanks for the help. And a special thanks to Sigur.