Hi sometimes we want to save the output of the command prompt to a text file. This post shows “how to save output to text file from command prompt”. Let’s see how to do this in step by step.
Step 1: To open the command prompt. “Press Ctrl +R and then type cmd”
Output of the command saved in notepad file is show below.
Step 1: To open the command prompt. “Press Ctrl +R and then type cmd”
Step 2: Syntax for saving the output from command prompt to text file.
"command” >> "filename"
Example:
tasklist >> test.txt
This command saves the list of running processes in your system to the test.txt file.
Output of the command saved in notepad file is show below.
No comments :
Post a Comment