windows 合并文件
- 方法一
copy *.txt log.txt
- 方法二
type *.log > A.log
关闭指定端口
@echo off
set port=3000
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port%"') do (
echo %%i %%j %%k %%l %%m
if "%%m" == "" (
TASKKILL /PID %%l /F
) else (
TASKKILL /PID %%m /F
)
)
标签:log,%%,windows,PID,echo,命令,txt
From: https://www.cnblogs.com/brucejiao/p/16820342.html