Jan Öhman wrote:
>
> But now came a desire - Can you print the structure of directories?
> If the directory structure was static it would have been easy....
MiKTeX supports pipes:
%% dirlist.tex
\documentclass{article}
\begin{document}
\obeylines
\obeyspaces
\input "|ls -1R"
\end{document}
$ pdflatex --enable-pipes dirlist.tex