What are some batch file codes?

Depends on your operating system. Everything you can type into your cmd, powershell or terminal, works in a batch file. Plus you can use conditional and loop statements (syntax depends on your operating system). Under Windows you can turn off output of source on a console by writing "@echo off" as your first line of your batch file or precede every statement by "@."