标签:nod off serve 窗口 script png nodejs close code
1,新建vbs文件
CreateObject("WScript.Shell").Run "cmd /c E:/OneDrive/NodeJS/WebServer/start2.bat",0
2,在bat文件前加代码
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
node E:\OneDrive\NodeJS\WebServer\server.js
标签:nod off serve 窗口 script png nodejs close code
原文地址:https://www.cnblogs.com/eliteboy/p/12193869.html