[Tex/LaTex] How to link from the PDF to a txt-file using hyperref

hyperref

I am writing a presentation using beamer with links to files on my harddrive. Everything works fine with files in PDF format. But: links to *.txt open the browser — and that's it. What am I'm missing?

Best Answer

This works for me. The log-file is opened (after a confirmation dialog from acrobat) in winedt, the editor set-up to open log-files. The log-file is in the same folder as the pdf.

\documentclass{article}
\usepackage{hyperref}
\begin{document}
abc\href{run:test-ansinew.log}{log-file}
\end{document}