Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


dirname command (retrieves character strings for directory path names from path names)

Organization of this page

Format

dirname[character-string]

Description

This command retrieves a directory path name excluding any file name from a character string that satisfies the file path naming conventions, and then outputs the result to the standard output.

The rules for retrieving directory path names are as follows:

The following table shows examples of dirname values and the retrieval results:

dirname command value

Retrieval result

C:\

C:\

C:

C:

\\server01\

\\

\\server01

\\

\\?\

\\

\\?

\\

\\.\

\\

\\.

\\

\\

\\

C:file001.txt

C:

C:\file001.txt

C:\

Arguments

character-string

Specifies a file path name.

Return codes

Return code

Meaning

0

Normal termination

1

Error termination

Notes

Examples