When specifying the command line for the called tool, meta parameters can be used. Meta parameters are variables and they are replaced by their contents before passing the command line to the tool.
would return d:\data\.
would return d:.
would return .pas.
would return myfile.
would return myfile.pas.
$PROMPT() can also take an optional filename argument. If present, $PROMPT() will load a dialog description from the filename argument. E.g.
would parse the file cvsco.tdf, construct a dialog with it and display it. After the dialog closed, the information entered by the user is used to construct the tool command line.
See section 6.10.7, page 291 for more information on how to create a dialog description.