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