# How to use UNC path

I struggle a bit with UNC paths in latex.

My paths looks something like

\\server\folder\folder

I found this. Which recommends to change \ to /. Thats not really a solution.

I put the path in a verbatim block which work but ignores the text flow. My other 'solution' is to replace every \ with \textbackslash{}

The question I have is: Is there any recommended or best practices way to deal with UNC paths?

I think you are trying to print the paths. If so, you may need this:

\documentclass{article}
\usepackage[obeyspaces]{url}

\begin{document}
\path{\\server\folder\folder}

\path{\\server\my folder\folder}
\end{document}


• Yeah this is exactly what I searched. And now I feeling a bit stupid because path is kinda obvious. – Sir l33tname Aug 28 '14 at 6:50
• @Sirl33tname Glad my guess is correct. I know that feeling as it happens to me too. It's OK. :-) – user11232 Aug 28 '14 at 6:54