@echo off cd /d "%~dp0" set CommandType=%1% set Event_Command_Name="" if exist 01_IISCommand.bat set Event_Command_Name=%cd%\01_IISCommand.bat if /i %Event_Command_Name% == "" goto Event_Command_Error :Event_CreateService echo ------------------------------------------------- echo 创建网站—[7088]ICBCPayService(工商银行) echo ------------------------------------------------- call "%Event_Command_Name%" /apppool _7088_ICBCPayService v4.0.30319 call "%Event_Command_Name%" /site [7088]ICBCPayService 7088 %cd% _7088_ICBCPayService v4.0.30319 :Event_CreateAppSite echo ------------------------------------------------- echo ------------------------------------------------- if /i not "%CommandType%" == "" goto Event_Continue2 echo 如果您不需要重启IIS服务,请直接关闭窗口。 echo 如果您不需要重启IIS服务,请直接关闭窗口。 echo 如果您不需要重启IIS服务,请直接关闭窗口。 echo 如果您不需要重启IIS服务,请直接关闭窗口。 echo 如果您不需要重启IIS服务,请直接关闭窗口。 echo ------------------------------------------------- for /L %%a in ( 9,-1,1 ) do ( echo %%a 秒钟后重启服务... ping localhost -n 2 >nul ) echo ------------------------------------------------- :Event_Continue2 echo 重启 ASP.NET状态服务...... net stop aspnet_state>nul net start aspnet_state>nul echo 重启 Internet 服务...... iisreset /stop>nul iisreset /start>nul echo ------------------------------------------------- echo 完成 goto Event_Command_Pause ::========================命令脚本错误======================== :Event_Command_Error echo ------------------------------------------------- echo 批处理脚本 01_IISCommand.bat 不存在。 echo ------------------------------------------------- start mshta vbscript:msgbox("批处理脚本 01_IISCommand.bat 不存在。",0,"超图软件")(window.close) ::========================按键结束============================ :Event_Command_Pause if /i not "%CommandType%" == "" goto Event_Continue3 echo ------------------------------------------------- for /L %%a in ( 3,-1,1 ) do ( echo %%a 秒钟后关闭... ping localhost -n 2 >nul ) ::========================结束退出============================ :Event_Command_Exit @echo on :Event_Continue3