Enables/Disables Long file names when processing FOR commands.
To enable Long file name support with FOR:
To disable Long file name support with FOR (default):
To display the current status of LFNFOR:
- 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.
- 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.