Let you redirect the output of a command to a file, giving you a saved data of whatever command produced in the Command Prompt window. An incredibly useful Command Prompt trick is the use of redirection operators, specifically the > operators. Heres how to Save a Commands Output to a File
Step 1 : open the command prompt (window + r) and type cmd.
Step 2 : Hit Enter.And type command like i have type netstat -ano > Techtrick.txt
Step 3 : You can type any command and after that just type > (file name).(extension)
Step 4 : Hit Enter.And in last command Just type Techtrick.txt