On Sun, Nov 28, 2021 at 7:54 AM saito yutaka <melody....@gmail.com> wrote: > > How to redirect STDOUT and STDERR to file. > I want to redirect to file as follow.
This is not doable directly in COMMAND.COM or FreeCon from FreeDOS. By default,file descriptor 1 is STDIN, file descriptor 2 is STDOUT, and file descriptor 3 is STDERR. All are assigned to display on the console. DOS does not let you treat STDOUT and STDERR separately. You can redirect STDOUT, but not STDERR, If you use 4DOS instead, it *will* let you do this. Do it like this; <commend output to redirect> >&> error.txt The ">&>" is the magic command line sequence, and what follows it is the filename you want STDERR to be redirected to. > Saito Yutaka ______ Dennis _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user