dosname

display the short name (8.3) or long name equivalent of file names 

Command


SYNOPSIS

dosname [-q] -l | -s | -u filename...


DESCRIPTION

dosname displays either the short name (8.3) or long name equivalents of the specified filenames based on whether you specify -l or -s. If you do not specify any filenames, dosname reads the standard input, assuming each line to be a file name.

As a side effect, you can use dosname to determine if a given path is valid simply by checking if dosname completes successfully when passed the path in question.

Options

-l 

displays the long name equivalent of the specified filenames.

-q 

suppresses error messages.

-s 

displays the short name (8.3) equivalent of the specified filenames.

-u 

displays the virtual file system path name equivalent of the specified filenames. See the EUCM reference page for more information on the virtual file system and the Enhanced UNIX Compatibility Mode.


EXAMPLE

To display the short name (8.3) equivalent of all files in the current directory tree, use

find . | dosname -s

ENVIRONMENT VARIABLES

TK_UNIX_FILESYSTEM 

When this variable is set, the Enhanced UNIX Compatibility Mode is on and the virtual file system is in use. For details on the Enhanced UNIX Compatibility Mode and the virtual file system, see the EUCM reference page.


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

>0 

An error occurred.


PORTABILITY

Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


PTC MKS Toolkit 10.1 Documentation Build 15.