how to save the output of a command to a file in cmd code example Example: how to save command output in text file YOUR-COMMAND > c:\PATH\TO\FOLDER\OUTPUT.txt