Why does the statement, “SYSTEM dir” not work in dL4 for Windows?
The dir command is not a separate program, it is part of cmd.exe (or command.com on older systems). The proper syntax to execute a dir command would be “SYSTEM command.com /c dir”. The directory driver should be used instead of the “dir” command for maximum portability. The following program displays all filenames in current directory.