A collection of some useful snippets for batch files.
Controlling batch file output
To stop every line of the batch file being output to the command prompt put this at the top of the batch file, this makes for a less noisy output.
Echo the output of a command, useful for logging what the batch file is actually doing.
for /f %%i in ('dir') do echo %%i