How to Save the Command Prompt’s Output to a Text File in Windows

This is one of those things I do a lot and never even thought to put it up on the site. I do it, mostly, for large directories I am trying to verify after something like a RoboCopy. Very simple to do.

Saving the output of a Windows Command Prompt command is a great way to get a nice neat copy to share with support staff, analyze longer outputs using your favorite text editor, or otherwise interact with the output with more flexibility than staying in the command window allows for.

To redirect the output of a command to a text file instead of printing it to the screen in the command window, we simply need to execute the command and append it with the “>” angle bracket symbol—called, appropriately enough, a redirection.

If for example, you wanted to save the output of the DIR function to a text file instead of scrolling page after page on your screen in the command window, you would execute the command

DIR > some-descriptive-filename.txt 

Read more - click here.

Da Boss!

Website: www.digitalsmind.com

Who's Online

We have 306 guests and no members online

Search Articles

Site Updates.

'I never forget a face, but in your case I’d be glad to make an exception.'

Latest Content

  • Microsoft and Facebook just laid a 160-terabits-per-second cable 4,100 miles across the Atlantic
    Written by
    Microsoft and Facebook just laid a 160-terabits-per-second cable 4,100 miles across the Atlantic Awesome.. Microsoft, Facebook, and the telecoms infrastructure company Telxius have…
  • iOS 11 is causing massive battery drain problems
    Written by

    Da Boss!

    iOS 11 is causing massive battery drain problems Sometimes, it's a good thing to just wait for the…
    Read more...
  • Meth found in 7-Up in Mexico
    Written by

    Da Boss!

    Meth found in 7-Up in Mexico Meth in 7-Up. What's next? 
    Read more...
  • ASUS B250 Mining Expert LGA 1151 Motherboard - supports up to 16x GPU, Mining Mode BIOS Optimization
    Written by

    Da Boss!

    ASUS B250 Mining Expert LGA 1151 Motherboard - supports up to 16x GPU, Mining Mode BIOS Optimization Ya know, if I was that into Mining I would…
  • CCleaner for Windows "Hacked" - Hackers Hid Backdoor
    Written by

    Da Boss!

    CCleaner for Windows "Hacked" - Hackers Hid Backdoor Welp...I'm s****! I use CCleaner all the time. So much…
    Read more...

Visit the Digitalsmind Video YouTube Page!

Did you know we have a video page on YouTube? 

Well... WE DO! 

Check us out! 

- Our Video page.