Home >> MS-DOS Reference >> Command Categories >> Batch File Commands >> LFNFOR
|
|
Batch File Commands |
|
|
LFNFOR [ON | OFF]
Typing LFNFOR on its own will display the current setting.
This command is undocumented. It only works when Windows 9x is loaded in GUI mode.
LFNFOR must qualify as one of the most obscure commands around. It is used in conjunction with the FOR command. Given the following filenames:Long Name 1.txt (= LONGNA~1.TXT)
Long Name 2.txt (= LONGNA~2.TXT)
Long Name 3.txt (= LONGNA~3.TXT)
If LFNFOR is set off then:
FOR %I IN (*.TXT) DO ECHO %I
will display
LONGNA~1.TXT
LONGNA~2.TXT
LONGNA~3.TXT
If it is set on then this will be displayed:
Long Name 1.txt
Long Name 2.txt
Long Name 3.txt
| Home | |
| MS-DOS Home | |
| A - Z Index |
| Top of page |
| Summary |
| Description |
| Command Syntax |
| Comments |
|
|
Printed from the NukeSoft MS-DOS Reference. Copyright © 1995 - 2006 Marcus Houlden