Menu

#295 support for "FOR" command

Unstable_(example)
open
nobody
None
1
2022-10-01
2022-08-08
No

Hi, I needed to execute an old application which makes use of batch files containing "FOR" commands. I thus implemented it by reproducing the behaviour of Windows 98. The code is C++ 11 compliant. I hope this helps.

1 Attachments

Discussion

  • Wolfgang Sourdeau

    Note : in the documentation for "FOR", the list of values is reported to be filenames but it turns out that any string can do.

     
  • Wolfgang Sourdeau

    Also, the DOS version supports wildcards in the filelist but I did not know how to implement that.

     
  • Wengier

    Wengier - 2022-10-01

    For your information, FOR command (along with LFNFOR command as in MS-DOS 7+/Windows 9x) had already been implemented in some DOSBox forks (such as DOSBox LFN and DOSBox-X) for some time, including wildcards and optional LFN (long filename) support as in Windows 98. Interesting to see another implementation of this command (although without wildcards or LFN support).

     

    Last edit: Wengier 2022-10-01

Log in to post a comment.