>But one problem still exists. In some cases I'm creating document file (.pdf or .rtf) before opening. And I cannot pass file name to FindExecutable because file not yet created. Adding of two dummy files to application is not a very good solution.
You can use Strtofile() to create dummy file with required extension on the fly.
--sb--