1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

How to copy info in 'dos box' to txt file

Discussion in 'Windows XP' started by geoand, Mar 8, 2005.

Thread Status:
Not open for further replies.
Advertisement
  1. geoand

    geoand Thread Starter

    Joined:
    Apr 28, 2002
    Messages:
    75
    Hi,

    Could someone please advise me how to copy the info in a dos box to a text file? I remember it was something to do with adding the | character somewhere in the command but the rest escapes me.

    Must be Alzheimers, my memory ain't what it used to be ;) I'm running XP Pro SP2.

    Thanks
     
  2. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,418
    If you want to cut & paste from a DOS window, right click on the title bar, Edit, Mark. Use the mouse to highlight the text you want to copy, and hit Enter (yes, Enter).

    If you want a command line app to direct it's output to a text file, use the > character. For instance, to capture the output of the DIR command:

    DIR C:\WINDOWS >C:\LISTING.TXT
     
  3. geoand

    geoand Thread Starter

    Joined:
    Apr 28, 2002
    Messages:
    75
    Thanks johnwill,

    That wasn't what I did before but that way is much easier than the other method. It's certainly easier to remember although I'll write it down in case my Alzheimers gets worse :rolleyes: (probably forget where I wrote it, per se). I do keep 'Windows Grep' for searching through files for hints & tips [I keep lots] on my HD but I couldn't find this one.

    Much appreciated for your prompt reply.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/338555

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice