|
|
|||
|
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 Related Topics
|
|
|
This web is provided "AS IS" with no warranties.
Copyright © 2002-2018
ChicagoTech.net,
All rights reserved. Unauthorized reproduction forbidden.