web analytics

How to save the Ouput of a DOS Command in text file

This is a small trick that many Dos users might already know. The trick just shows you how to run a Dos command and instead of displaying the outputs on the screen, it saves the outputs into a file.

This trick is very helpful when you want to save the result of a dos command to a file to email it or read/print it later. For example, you can print out your network configuration data and email it to a technical support.

Here’s how

simply put a “>” and the destination file at the end of the dos command. Examples:

This command outputs the IP configurations to the file “ipdata.txt” in “C” drive:

ipconfig /all > C:ipdata.txt

This command outputs the “Path” configurations to the file “pathdata.txt” in the floppy drive “A“:

path > A:pathdata.txt

This command outputs help text of the command “copy” to the file “copyhelp.txt” in “C” drive:

copy /? > C:copyhelp.txt

Computer Tricks
A weblog on computer tricks, windows tricks, registry tweaks, virus removal information , internet tricks.

Blog Widget by LinkWithin

Incoming search terms for the article:


Related posts:

  1. DOS event monitoring
  2. Hide files behind text files : The secret trick
  3. Change the text on Start button in XP
  4. Make custom Run commands
  5. Text prediction in Windows Command
  6. How to hide a file in image
  7. Add “copy to” and “move to” options in right click(XP)
  8. [How To]Copy Firefox passwords to new os|Backup firefox password file
  9. Making A file of the size you want
  10. How to change the background color in DOS

Comments are closed