Secret Base

All the little bugs I have ever met

Home Archives
2020-09-12
Windows

Dos Batch

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

1
type *.md | findstr "<p>"

mode

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

1
mode con cols=100 lines=60
Share
Newer
Windows Terminal Font
Older
Vim

Categories

  • Algorithm
  • Algorithm - Interview
  • Android
  • Hardware
  • Hardware - GPU
  • Linux
  • Misc
  • Network
  • Security - RE
  • Tool
  • WSL
  • Windows

Archives

  • June 2026
  • December 2025
  • September 2025
  • April 2025
  • January 2025
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • February 2024
  • August 2023
  • July 2023
  • June 2023
  • April 2023
  • January 2023
  • December 2022
  • August 2022
  • May 2021
  • September 2020
  • July 2020
  • July 2019
  • March 2019
  • February 2019
  • October 2018
  • June 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • June 2017
  • March 2017
  • February 2017
  • December 2016
  • October 2016
  • August 2016

Recent Posts

  • Hexo 8.0
  • Ubuntu Input Method
  • Windows VPN Hotspot
  • Workspace Setup
  • V2Ray Server - Ubuntu
© 2026 Zhengyang Song
Powered by Hexo
Home Archives