I'm using MikTeX 2.9 (pdflatex) and WinEdt 8.2. I know that all output files such as .tex, .pdf, .dvi, .log are important and I cannot simply delete them so I would like to ask how to get files (.pdf and .tex) in one directory and other files in another directory.
I have already found very similar questions here with answers, but I was not still able to sort it out. I have found out that I should use --output-directory=dir and --aux-directory=dir but I don't exactly know how to work with it. Could anyone help me with this problem?


MiKTeX Options. Then,Execution Modes …, you select it by clicking on theBrowse…icon on the right. The directoty will appear in the line just underTeX Local Root, and clicking on theApplybutton, it also will appear in the line next took. That's all. Btw,D\…comes from my personal choice to have my TeX system on a separate partition. You can put your Local TeX root anywhere you please. The only constraint is to respect the TDS organisation. – Bernard Aug 09 '14 at 16:26