Sunday, 5 November 2017

Save a Command's Output to a Fil

07
of 21

Save a Command's Output to a File



Picture of the output of an instance of the systeminfo command

An incredibly useful Command Prompt trick is the use of redirection operators, specifically the > and >> operators.
These little characters let you redirect the output of a command to a file, giving you a saved version of whatever data the command produced in the Command Prompt window.
For example, let's say you're about to post a computer problem to an online forumand you want to provide really accurate information about your computer. An easy way to do that would be to use the systeminfo command with a redirection operator.
For example, you might execute systeminfo > c:\mycomputerinfo.txt to save the information provided by the systeminfo command to that file. You could then attach the file to your forum post.
See How to Redirect Command Output to a File for more examples and a better explanation of how to use redirection operators.

No comments:

Post a Comment

Edit Websites in Browser (Live)

                                        Edit Websites in Browser (Live) Imagine a world where you are a God and have ultimate control ...

ALL POST