@echo off tasklist|find /i "SettleAccount.HttpApi.Host.exe" if %errorlevel% == 0 ( exit ) cd /d %~dp0 %1 start mshta vbscript:createobject("wscript.shell").run("""%~0"" ::",0)(window.close)&&exit start /b SettleAccount.HttpApi.Host.exe --urls http://*:16082