Displays the actual path corresponding to virtual drives created using the SUBST command.
To display the full path (in short file name form) of a drive created with SUBST:
To display the full path (in short file name form) of the current directory of the current drive:
To display a file and/or path (in short file name form) assigned to an environmental variable using SET:
- TRUENAME displays the real path corresponding to virtual drives created using the SUBST command in short file name form.
- 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)
If "c:\data\docs\manuals\Dos" has been assigned to drive Z: using the SUBST command, then
and, whether "copy.com" exists on "z:" or not: