I'm quite fond of menukeys
, and I think you should still consider using it.
Unfortunately, menukeys
currently doesn't provide its users a way of customising the output path separator (the "weird arrow" you're referring to). However, I'm sure Tobias "Tobi" Weh (the author of menukeys
) would add that feature in a future release if he sees this question.
In the meantime, here is a way of customising the path separator.

\documentclass{article}
\usepackage{menukeys}
\makeatletter
% --- macro for changing path sep ---
\newcommand\setnewpathsep[1]
{%
\tw@declare@style@simple*{paths}{%
{\ttfamily\CurrentMenuElement}%
}[%
#1%
]{blacknwhite}
}
% --- reset the path separator (macro expands to original style def) ---
\newcommand\resetpathsep
{%
\tw@declare@style@simple*{paths}{%
{\ttfamily\CurrentMenuElement}%
}[%
\hspace{0.2em plus 0.1em}%
\raisebox{0.08ex}{%
\tikz{\fill[\usemenucolor{txt}] (0,0) -- (0.5ex,0.5ex)%
-- (0,1ex) -- cycle;}%
}%
\hspace{0.2em plus 0.1em}%
]{blacknwhite}
}
\makeatother
\begin{document}
% original style
\directory{C:/Program Files/Some program/bin/executable.exe}
% Windows style
\setnewpathsep{\textbackslash}
\directory{C:/Program Files/Some program/bin/executable.exe}
% Unix style
\setnewpathsep{/}
\directory{C:/Program Files/Some program/bin/executable.exe}
% back to original style
\resetpathsep
\directory{C:/Program Files/Some program/bin/executable.exe}
\end{document}
url
will be the responsible package but now it works. You still have to escape the \ though. – alisianoi Mar 8 '14 at 18:54\url{C:\Program Files\Some program\bin\executable.exe}
. – Mico Mar 8 '14 at 18:58