How do I save a batch file output?
Answer
Logging in is possible in Batch Script by using the redirection command.
Answer
Logging in is possible in Batch Script by using the redirection command.
- Syntax. test.bat > testlog.txt 2> testerrors.txt.
- Example. Create a file called test. bat and enter the following command in the file. …
- Output. If the command with the above test.bat file is run as test.bat > testlog.txt 2> testerrors.txt.