The information in this article applies to:
SYMPTOMSWhen you use the MS-DOS FOR command in Windows 95, long filenames (LFNs) may not be handled correctly in MS-DOS sessions or with LAN Manager version 2.11 servers. CAUSEWhen you use the FOR command in Windows 95, LFN support is turned off. This behavior is by design. RESOLUTION
Use the "LFNFOR ON" command before you execute a FOR command in a batch
file.
In this example, the "LFNFOR ON" command causes LFNs to be displayed
correctly. A file named "New Text Document.txt" is displayed with its full
name. Without the "LFNFOR ON" command, the file would be displayed with
its 8.3 filename of "Newtex~1.txt."
MORE INFORMATION
The LFNFOR command enables and disables LFN support when processing FOR
commands. Use "LFNFOR ON" to enable LFN support, and "LFNFOR OFF" to
disable LFN support.
Keywords : |
Last Reviewed: June 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |