LFNFOR

Index
Enables/Disables Long file names when processing FOR commands.

Syntax

To enable Long file name support with FOR:
LFNFOR On

To disable Long file name support with FOR (default):
LFNFOR Off

To display the current status of LFNFOR:
LFNFOR

Notes

  1. This is one of those odd commands that has presumably been included to allow batch file programmers when updating complex batch files designed for previous versions of Dos. Nevertheless, being able to specify whether a set of files is to be processed by their short or long filenames does add a new tool to the programmers arsenal.

  2. When LFNFOR is ON, the FOR command demonstrates a nasty bug when processing sets of files that include a path - see FOR for further details.

File Details

Internal

If you should have any comments or suggestions,
please contact: Bob Watson
.
This page last revised:
December 28, 1999