KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q32225: Using the SHORTNAMES Switch

Article: Q32225
Product(s): See article
Version(s): 1.00   | 1.00
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | tar78150 | mspl13_basic
Last Modified: 31-MAR-1989

SHORTNAMES is a boolean switch. When it is set (the default), if you
type <arg> "foo" <setfile>, you will be sent to the first file in your
history list with the base name "foo". You do not have to specify the
full pathname for a file in another directory. If there is no
d:\path\foo.xxx anywhere in your file history, you only get foo.

If you have a file "foo" in your current directory, SHORTNAMES still
tries to find a file in your history list first. The history of files
is stored in M.TMP. The number of files saved is determined by the
TMPSAV switch.

To disable this feature, set noshortnames: in your TOOLS.INI file.

To avoid this behavior without changing the switch value, include a
period in the path specification. For example, enter <arg> "foo."
<setfile>, which will look only in the current directory. The presence
of any path character (".", etc.) disables the SHORTNAMES feature for
the file being referenced.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.