home | about | newsletters | contact | advertising | Shop | radio | membership | site map

Helping Normal People Get Their Geek On And Live The Digital Lifestyle

Free and Premium. Why Register?

Login: Password: Remember me

Save Command Line Output to a File

Posted Feb 23, 2006 by David Risley  

Ever run a program or utility from the command prompt and have output scroll so quickly up the screen you couldn’t read it? Maybe you just want the ability to capture the output so you can review or email it. Simply use the greater than sign (>) and enter a destination file name after the command.

This is an extremely versatile and useful. For example, if you want to create a listing of all your MP3 files in directory C:\Music, try enter the following sequence at the command prompt:

cd \music
dir > c:\my_music.txt

Now go look at your C drive and you should see a file called my_music.txt. Take a look and there are all your files.

Note: this also works in *nix systems.

Feel Like a Turtle When It Comes to Today's Tech?

Our silver and gold membership programs provide the premium information you need to strap a rocket on and fly. Premium content, exclusive members-only newsletter, no advertising, offline access, and more. Get the Inside Scoop.

About the Author

David Risley is the founder of PCMech.com. He is the brains, the thinker, the writer, the nerd.
David's Website
David on Twitter
David on FriendFeed

Free Weekly Newsletter

Name:
Email:
 

Featured Product of The Week

Getting Started with Ubuntu Linux

Getting Started with Ubuntu Linux

Now Playing on PCMech Video

Feature ImageGoogle Chrome (Video)

Feature ImageHow-To: Mass Rename Files in Windows XP/Vista

See All Videos | PCMech Channel Youtube Channel