How to get Windows XP command prompt output to Notepad

Sometimes we need to copy output from a command prompt and paste it into a Windows program such as Notepad. Usually, you’ll try to use the Mark and Copy commands on the command prompt’s Edit menu. I recently found an article from Tech Republic about Copy and paste from Windows XP Pro’s command prompt straight to the Clipboard where Greg Shultz is introducing a command line tool called Clip.exe. But I have my own way to get information from a command prompt and onto your notepad without using the Clip.exe.

It is so simple. Lets say, you want to get the output from ipconfig command, then just add a '>' and type the name of text file you want like 'ipconf.txt'. On the command prompt it will look like this:


Then, you can view your output on notepad by simply type 'notepad ipconf.txt' and press enter like this:


That's all. Good Luck and have fun! Anyway, you may want to view Greg Shultz's tips on how to Copy and paste from Windows XP Pro’s command prompt straight to the Clipboard using Clip.exe

Comments

Anonymous said…
If you add "nul" to your redirect, the contents of the file open automatically in Notepad. Try ipconfig /all >nul . It works in XP Pro and Vista Business!
muusa said…
does it works with linux
ApOgEE said…
Dear muusa,

Yes, it works! Just open your linux terminal and type the command and add the same > to file name you like. For example:

ifconfig -l > my-output.txt

Popular posts from this blog

How to Create Hyperlink on Blogger Post

How to Add a Sudo User on AlmaLinux 9.2 (Turquoise Kodkod): A Step-by-Step Guide

How to Check AlmaLinux Version on the Command Line: A Quick Guide