Consider the following MWE:
\documentclass{article}
\usepackage{graphicx}
\usepackage{epstopdf}
\begin{document}
\includegraphics[width=0.5\textwidth]{knightstour.eps}
\end{document}
where knightstour.eps can be downloaded from http://people.sc.fsu.edu/~jburkardt/data/eps/knightstour.eps
If I save this .tex file and the .eps file anywhere locally on my computer, it will compile fine with no errors.
However, if I move these two files to a network drive, then it won't compile and gives an error. TeXStudio shows the following message:
'\\fileserver\TeX files' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory.
Sorry, but epstopdf did not succeed. The log file hopefully contains the information to get MiKTeX going again:
The log file shows
Package pdftex.def Error: File `knightstour-eps-converted-to.pdf' not found: using draft setting. ...phics[width=0.5\textwidth]{knightstour.eps}
What I've tried
I've tried adding a graphics path like this
\graphicspath{{\\fileserver\TeX files}}
and because it has spaces I've also added \usepackage[space]{grffile}. But that still gives the same error.
Additional info
I'm using Windows 10 and MikTeX. For some reason, when I use TeXworks, out of the box it all works fine and I am able to compile the file with no issues when saved on the network drive. Is the issue with the way TeXstudio is set-up?
\\...are called ANC paths (as far as I remember), and these are not supported by for example the good old command prompt. So depending on how latex is exacuted by your editor, you may end up in a situation where such a path is not supported. – daleif Apr 24 '19 at 15:54