按使用场景分组,点击"复制"按钮一键复制命令
netstat -ano
netstat -ano | findstr :<port>
netstat -ano -b
ipconfig /all
ipconfig /flushdns
ping -t <host>
tracert <host>
tasklist
tasklist | findstr <name>
tasklist /FI "PID eq <pid>"
taskkill /PID <pid> /F
taskkill /IM <name>.exe /F /T
sc query state= all
sc query <服务名>
net start <服务名> / net stop <服务名>
sc delete <服务名>
sc query state= all | findstr -i mysql
dir
dir /s /b *.log
dir /ad
xcopy <src> <dst> /E /I /Y
robocopy <src> <dst> /MIR
rmdir /s /q <dir>
forfiles /P <dir> /M *.log /D -7 /C "cmd /c del @path"
schtasks /query
schtasks /create /tn "backup" /tr "C:scriptsackup.bat" /sc daily /st 02:00
schtasks /run /tn <任务名>
schtasks /delete /tn <任务名> /f
systeminfo
shutdown /r /t 0
findstr /i /n "error" app.log
findstr /s /i "error" *.log
findstr /r "^ERROR" *.log
find /c /v "" app.log
setx <VAR> "<value>"