9.2.2 Dirname_Shell_Utils Procedure

The Dirname_Shell_Utils procedure strips off the filename and returns only the directory name from a given pathname.

Calling syntax:

Character = Dirname(Filename)

Input variables:

 Filename  The Filename to be modified.

Output variable:

 Dirname  The directory part of the input Filename. Note that '.' is returned if there is no directory part.

Internal variables:

 dirname_right  Rightmost character of directory name.

The Dirname_Shell_Utils code listing contains additional documentation.

Michael L. Hall