Today at 5:06pm +0530 Radhakrishnan CV wrote: > Exploiting the shell-escape, > > \immediate\write18{echo "\string\gdef\string\pwd{$PWD}" > pwd.tex} > > \IfFileExists{pwd.tex}{\input pwd}{\gdef\pwd{.}} Thank you perfect solution. -- H.S.Rai