Sometimes when we are using troubleshooting our PC, we may need to access some troubleshooting commands from the command prompt. Whatever the reason you may be troubleshooting you may want to output the commands in a command prompt to a notepad text file.
Today I’d like to show you how easy it really easy to do so.
Steps to copy command prompt to notepad:
Step 1: Delete All Messages In the command prompt enter the command that you are wanting to copy. In this example we will be working with the ipconfig command.
Step 2: Once you have entered the text into the command before you press enter you need to press > symbol followed by the path and file name to where you want to save your file. When you save your file, be sure to save it as a txt file. This is the format used for notepad. See the example below.
Once you have entered as shown in the example as above press enter.
Step 3: When you press the enter key, you will notice that you will not see the results from the command as you normally would when you enter a command in.
Step 4: Navigate to windows explorer, and to the directory we saved the file. You can access windows explorer by pressing the windows key + E
You will see the file in the c:\ directory. In the example we saved the file name as text as shown below. Double click on it
Step 5: When you open the notepad file, you should see the results of the command shown below. This means we have successfully copy command prompt to a text file.
Another great tip to copy command prompt to notepad is, when you use the > Symbols to output the contents to a notepad file you need to keep in mind the following:
- > will write to the file one time If the file exists it will delete the text file and recreate it with the output you’ve just created.
- >> Will write the output to a text file. If the text file doesn’t exist it will create it. if it does exist it adds the output on the end.
I hope this has been able to solve your answers on copy command prompt to notepad file. Please join the discussion below and leave your feedback, and please share and share a like
Article Resource: Stackoverflow