bat文件
@echo off
F:
cd\pictures\projectStreet\FloatingShinyKnot-main
node server.js
cd\
bat静默运行(但会闪一下)
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
REM
关闭静默端口
@echo off
set port=8070
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port%"') do taskkill /pid %%m -t -f
exit
标签:echo,文件,bat,%%,begin,cd,exit,简短
From: https://www.cnblogs.com/ggonekim/p/17165963.html