[Tex/LaTex] MikTeX cannot find the file

miktexxetex

Why is it that MikTeX's XeTeX cannot find my file?

enter image description here

Dude, you're right there in the same directory as the file, why can't you see it?!

Best Answer

Your document is inside the miktex tree. miktex will not search it there. Documents don't belong in application folders (and the miktex tree is an application folder). Put it in a documentation folder. (Addition: Depending on the concrete location of the document in the texmf tree miktex will perhaps find it if you update the FNDB, but then the next problem will be that it doesn't find the aux or the toc). –

See it as a security feature: Imagine that you try to compile inside the bin-folder a document which generates a file called MiKTeX209-xetex.dll. You can easily do a lot damage with a compilation inside a texmf tree as a compilation has to be able to overwrite files like e.g. toc or pdf.