Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
List of DOS commands
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== TRUENAME === Internal command that expands the name of a file, directory, or drive, and display its absolute pathname as the result. It will expand relative pathnames, <kbd>SUBST</kbd> drives, and <samp>JOIN</samp> directories, to find the actual directory. For example, in DOS 7.1, if the current directory is <samp>C:\WINDOWS\SYSTEM</samp>, then {{sxhl|2=doscon| C:\WINDOWS\SYSTEM>TRUENAME ..\WIN.INI C:\WINDOWS\WIN.INI }} The argument does not need to refer to an existing file or directory: TRUENAME will output the absolute pathname as if it did. Also TRUENAME does not search in the <samp>PATH</samp>.<br /> For example, in DOS 5, if the current directory is <samp>C:\TEMP</samp>, then <code>TRUENAME command.com</code> will display <samp>C:\TEMP\COMMAND.COM</samp> (which does not exist), not <samp>C:\DOS\COMMAND.COM</samp> (which does and is in the <kbd>PATH</kbd>). This command displays the [[UNC path]]names of mapped network or local CD drives. This command is an undocumented DOS command. The help switch "<kbd>/?</kbd>" defines it as a "Reserved command name". It is available in MS-DOS version 5.00 and later, including the DOS 7 and 8 in Windows 95/98/ME. The C library function <code>realpath</code> performs this function. The Microsoft Windows NT command processors do not support this command, including the versions of command.com for NT.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)