TEE [/A] file
A filter that copies input to its output and to file (eg, DIR | TEE DIR.TXT | MORE). file is replaced, or with /A, appended to (and created if it doesn’t exist).
A switch that isn’t valid, or a missing file, is a usage error. Otherwise, ERRORLEVEL is set to 0, or 2 if file couldn’t be opened (eg, Unable to open) or written (Unable to write, which includes running out of disk space).
Source: tee.asm
Copyright (c) 2020-2026 Jeff Parsons Released under MIT License