Self Modification

A batch file can modify itself.

Description: A batch file that is executing can modify itself with immediate effect. As it executes it can build the next command to be executed and append the new command to itself. This is useful for e.g:
  • Creation and execution of DOS code on the fly where as the created code becomes permanent part of the batch file itself.
  • Allows writing adaptive DOS Batch files