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).
ERRORLEVEL is set to 0, or 2 if a switch isn’t valid or file is missing (Syntax error), or 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