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:OneDriveNodeJSWebServerserver.js