Reflection

A batch file can parse it`s own source script.

Description: An executing DOS batch script is aware about the name and location of its own source file via the %0 batch parameter. This allows a batch to parse its own source file and change the execution path based on the parsing result. This is useful for e.g:
  • Storing configuration data or meta within the DOS batch and extract them file at runtime.
  • Storing data blocks within the DOS batch file and extract them at runtime.