Displays the true DOS path in 8.3 format corresponding to the long filename current path and/or virtual drives created using the SUBST command.
Syntax:
To display the full path (in short file name form) of the current directory of any drive:
TRUENAME [drive:]
To display the full path (in short file name form) of a file in the current directory of any drive:
TRUENAME [drive:] file.ext
To display the full path (in short file name form) of a drive created with SUBST:
TRUENAME substdrive:
where file.ext is an existing file name in 8.3 form.
Notes:
- Although TRUENAME will return output when used other than the above, my testing indicates such output is likely bogus (and not reliable).
- 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:\program files\microsoft office\office" has been assigned to drive O: using the SUBST command, then entering:
TRUENAME O:
would result in something like:
C:\PROGRA~1\MICROS~3\OFFICE
where C:\PROGRA~1\MICROS~3\OFFICE is the path in 8.3 form assigned to drive O:
- If "c:\program files\microsoft office\office" should be the current directory on c: and you are working in the d: drive, then the truename of "c:\program files\microsoft office\office\substitution1.txt" would be given by:
TRUENAME c:substi~1.txt
Note: TRUENAME c:substitution1.txt would result in a "file not found" error message.
File Details:
Internal
|