Menu

BAT_all_same

href

All the BAT files do the SAME thing

There is some curious syntax inside each BAT file. It runs a PS1 file whose name matches the name of the BAT file. So you can copy any of the BAT files to a new name, and then it will run a PS1 of that name.

Why?

  • Easy testing and usage of individual scripts
  • A pause happens at the end automatically, which lets you read error messages within the PowerShell environment.

Related

Wiki: Home