Files
CampusnoticeFront/scripts/kill-port.bat
T
lijing ec1f94eaa8
build / build (push) Successful in 10m17s
feat: 提交校园公告前端工程源码(Vue3 + Vite + view-ui-plus)
- 同步仓库 CI 配置 .gitea/workflows/build.yml
- 纳入 src/public/config/scripts 等工程文件
- .gitignore 增加 .scratch/.backup/.trash,排除本地临时产物
2026-09-15 11:15:03 +08:00

21 lines
486 B
Batchfile

@echo off
chcp 65001 >nul
REM Usage: kill-port.bat 8101
REM kill-port.bat 8101 /force (skip confirm, kill directly)
REM No argument -> prompts for the port number.
setlocal
set "PORT=%~1"
set "EXTRA="
if /I "%~2"=="/force" set "EXTRA=-Force"
if "%PORT%"=="" (
set /p "PORT=Enter port to release: "
)
if "%PORT%"=="" (
echo No port entered. Exit.
exit /b 1
)
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0kill-port.ps1" -Port %PORT% %EXTRA%
endlocal