Share this article
Improve this guide
Save Text from Command Prompt: 3 Ways to Do It
Learn how to save cmd output as text file
3 min. read
Updated onOctober 4, 2023
updated onOctober 4, 2023
Share this article
Improve this guide
Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more
Key notes
Command Prompt is one of the most important features of Microsoft’s Windows operating system. Users can basically perform any action on their computers with this tool, from checking data to solving various problems and evencustomizing the Command Prompt.
If you use this tool regularly, you’d probably want to save some often-performed commands, so you don’t have to type them repeatedly. Well, that’s possible in Windows 10’s Command Prompt, and there are even a couple of ways to do so.
In this article, we’re going to show you how to save any Command Prompt command as a text, so you can easily use it whenever you want.
How do I save text from Command Prompt in Windows 10?
1. Create an executable command
The most effective way to run a command over and over again is to create an executable of that command. To do that, you need to write a command in Notepad, save it as .bat, and execute it.
You can now open the .bat file you’ve just saved, and it will perform the same command each time. You need to open it as Administrator. Do check how you canalways run a file as administrator.
2. Select all and copy
Creating a .bat file is the most effective way of performing the same command multiple times. However, a lot of commands are there to show you some data, like your ping status or hard drive info. So, if you want current results from a command, you cannot perform it repeatedly.
In that case, you’ll want to save data from the Command Prompt into a text file.
3. Use the clip command
There’s another way to copy results from a command in the Command Prompt that some users will find even easier. That’s a simple Command Prompt command calledclipthat allows you to copy everything from a window to the clipboard.
That’s about it! As you can see, copying text from the Command Prompt is quite easy and requires minimal effort.
And do find out how toopen a folder in Command Prompt, before you leave.
If you have any comments or questions, just let us know in the section below.
More about the topics:windows 10
Ivan Jenic
Windows Hardware Expert
Passionate about all elements related to Windows and combined with his innate curiosity, Ivan has delved deep into understanding this operating system, with a specialization in drivers and driver troubleshooting.
When he’s not tackling diverse driver-related problems, Ivan enjoys watching good movies and spending time hiking with his family and friends.
User forum
0 messages
Sort by:LatestOldestMost Votes
Comment*
Name*
Email*
Commenting as.Not you?
Save information for future comments
Comment
Δ
Ivan Jenic
Windows Hardware Expert
Ivan has delved deep into understanding the Windows OS, with a specialization in drivers and driver troubleshooting.