Home | Troubleshooting |  Quick Setup  |  Cisco How to  |  Data Recovery  |  Forums   | Blog | IT Exam Practice | Services  | About Us | Chicagotech MVP  | Search  | Contact Us  |                  Laptop for rent: $35 per day plus $10 for additional day

rental
 

 

How to save a command result to a file

 

You can use > or >> to save a command line result, for example ipconfig /all >C:\ipconfig.txt.

 

To save multiple commands' results, use >>. For example you create a batch file to collect all username and date they logon, use this command: "echo %date% %time% Program: %0 User: %username% >>C:\temp\username.txt.

Post your questions, comments, feedbacks and suggestions

Contact a consultant

Related Topics


 

 


 

 

Hit Counter   This web is provided "AS IS" with no warranties.
Copyright © 2002-2018 ChicagoTech.net, All rights reserved. Unauthorized reproduction forbidden.