Batch Script Logging - Batch Script

What is Batch Script Logging?

Logging in is likely in Batch Script by using the redirection command.



Create a file called test.bat and enter the following command in the file.

The above command has an error because the option to the net statistics command is given in the wrong way.


If the command with the above test.bat file is run as

And you open the file testerrors.txt, you will see the resulting error.

The syntax of this command is –

More help is available by typing NET HELPMSG 3506.
If you open the file called testlog.txt, it will show you a log of what commands were executed.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

Batch Script Topics