Friday, 29 August 2014

Save/export CMD output to a file


Step 1. Go to Windows - > Run -> type CMD and press enter.

Step 2. Go to the directory where you want to save the file.

Use cd.. to exit from the folder. 

C:\Users\guest>cd..
C:\Users>
  
Use cd to go the directory.

C:\Users>cd guest
C:\Users\guest>


Step 3 Run the command cmd >capture.txt to make the new file with name CAPTURE.

Run the command for which you want to take ouput. Output will not be visible on the same CMD but it will be saved on the file i.e CAPTURE.
  

C:\Users\guest>cmd >capture.txt
ipconfig /all
ping 192.168.1.1


Step 4 Use EXIT keyword to terminate the session.

No comments:

Post a Comment