Truename

Index

Displays the actual path corresponding to virtual drives created using the SUBST command.

Syntax:

To display the full path (in short file name form) of a drive created with SUBST:
TRUENAME path

To display the full path (in short file name form) of the current directory of the current drive:
TRUENAME

To display a file and/or path (in short file name form) assigned to an environmental variable using SET:
TRUENAME %envirovariable%

Notes:

  1. TRUENAME displays the real path corresponding to virtual drives created using the SUBST command in short file name form.

  2. TRUENAME also works with ASSIGN and JOIN in earlier versions of Dos, but does not work with environment variables (assigned with the SET command).

    If filename is specified, TRUENAME returns the full "real" path of filename; if only path is specified, TRUENAME returns the real name of the path.

    If either path or filename is invalid, TRUENAME returns what the the real path would be if the path/filename did exist.

    This command is undocumented and first publicised (as far as I know) in a letter from W. Dnes in PC Magazine (Oct.16, 1990, p491)

Example:

If "c:\data\docs\manuals\Dos" has been assigned to drive Z: using the SUBST command, then
TRUENAME Z:
would display:


C:\WINDOWS>TRUENAME Z:

C:\DATA\DOCS\MANUALS\DOS

C:\WINDOWS>_
 

and, whether "copy.com" exists on "z:" or not:
TRUENAME Z:\copy.com
would display:


C:\WINDOWS>TRUENAME Z:\copy.com

C:\DATA\DOCS\MANUALS\DOS\COPY.COM

C:\WINDOWS>_
 

File Details:

Internal


If you should have any comments or suggestions,
please contact: Bob Watson
.
This page last revised:
October 15, 2000.