Basic knowledge of dos batch.

%~dp0

  • %0: the batch file itself
  • %1-%9: command line arguments
  • d: the drive letter
  • p: the path of the parameter

cls

clean screen.

findstr

type *.md | findstr "<p>"

mode

Sets the number of lines and columns (characters/line) of the display.

mode con cols=100 lines=60