94 lines
3.0 KiB
Plaintext
94 lines
3.0 KiB
Plaintext
|
|
|||
|
The
|
|||
|
|
|||
|
Fabulous
|
|||
|
|
|||
|
#### #### ### ### ##########
|
|||
|
##### ##### ### ### ##########
|
|||
|
### ## ## ### ### ### ###
|
|||
|
### ## ## ### ### ### ########
|
|||
|
### ### ### ### ### ########
|
|||
|
### # ### ### ### ###
|
|||
|
### ### ### ### ###
|
|||
|
### ### ## ########## ## ### ##
|
|||
|
### ### ## ######## ## ### ##
|
|||
|
|
|||
|
List
|
|||
|
|
|||
|
(MicroSoft's Undocumented Features)
|
|||
|
|
|||
|
Volume 1 Number 6
|
|||
|
|
|||
|
===============================================================================
|
|||
|
|
|||
|
1) TRUENAME
|
|||
|
|
|||
|
Internal DOS 5.0 command. Canonicalize a filename or path (using
|
|||
|
DOS interrupt 21h, function 60) prints the actual directory.
|
|||
|
|
|||
|
SYNTAX
|
|||
|
|
|||
|
TRUENAME filename prints the complete path to file
|
|||
|
|
|||
|
TRUENAME directory prints the complete path to directory
|
|||
|
|
|||
|
Note: If the path is in a network, it starts with a \\machine-name
|
|||
|
|
|||
|
Michael Larsson
|
|||
|
|
|||
|
|
|||
|
TRUENAME is analogous to the "whence" command in the UNIX Korn
|
|||
|
shell. It returns the real fully qualified pathname for a command.
|
|||
|
|
|||
|
TRUENAME is useful in networks, where a physical drive may be mapped
|
|||
|
to a logical volume, and the user needs to know the physical location
|
|||
|
of the file. It ignores the DOS SUBST, and JOIN commands, or network
|
|||
|
MAPped drives.
|
|||
|
|
|||
|
It is an undocumented MS/DOS feature, but is documented in 4DOS as
|
|||
|
follows:
|
|||
|
|
|||
|
SYNTAX (Internal DOS 5.0 / 4DOS)
|
|||
|
|
|||
|
TRUENAME [d:][path]filename
|
|||
|
|
|||
|
PURPOSE
|
|||
|
|
|||
|
Returns a fully qualified filename.
|
|||
|
|
|||
|
COMMENTS
|
|||
|
|
|||
|
TRUENAME will see "through" JOIN and SUBST commands, and requires
|
|||
|
MS-DOS 3.0 or above.
|
|||
|
|
|||
|
EXAMPLE
|
|||
|
|
|||
|
The following command uses TRUENAME to get the true pathname for a
|
|||
|
file:
|
|||
|
|
|||
|
c:\> subst d: c:\util\test
|
|||
|
c:\> truename d:\test.exe
|
|||
|
|
|||
|
c:\util\test\test.exe
|
|||
|
|
|||
|
Dennis McCunney
|
|||
|
|
|||
|
TRUENAME : will reveal the full name drive and path of the filename.
|
|||
|
If you specify a wildcard ('*') in the filename, it will expand
|
|||
|
the filename to use question marks instead. If the path includes
|
|||
|
the ..\ sequence, TRUENAME will examine the directory structure and
|
|||
|
calculate the path. Stranger still, the line:
|
|||
|
|
|||
|
TRUENAME \CRONK\FLIBBET\..\ART
|
|||
|
produces the response:
|
|||
|
C:\CRONK\ART
|
|||
|
|
|||
|
even if the directories \CRONK\FLIBBET and the file ART don't exist!
|
|||
|
Don't expect this command to work across networks.
|
|||
|
|
|||
|
PC Magazine #212 Pg. 48-49
|
|||
|
Forwarded by:
|
|||
|
Rodney Atkins
|
|||
|
|
|||
|
===============================================================================
|
|||
|
|