Windows bat note

For loop in bat

:: Im a comment 註解

@echo off
set count=0
:loop
set /a count=%count%+1
start SilentCMD.exe NewFile.bat
timeout /t 2100
if %count% neq 5 goto loop
pause

// https://stackoverflow.com/a/40663448

Timeout in BAT


// Timeout 10 second
timeout /t 10

Kill task

taskkill /f /im chrome.exe
taskkill /f /im javaw.exe