`

(存档)切换web工程上下文脚本

 
阅读更多

@echo off
If not exist manager.xml goto robot

:manager
echo ::Manager
choice /M "switch" /T 2 /D N /C YN
if ERRORLEVEL 2 goto end
goto :torobot

:robot
echo ::Robot
choice /M "switch" /T 2 /D N /C YN
if ERRORLEVEL 2 goto end
goto :tomanager

:tomanager
ren robot.xml robot.xml-
ren demo.xml demo.xml-
ren manager.xml- manager.xml
echo ::Manager
goto end

:torobot
ren robot.xml- robot.xml
ren demo.xml- demo.xml
ren manager.xml manager.xml-
echo ::Robot
goto end

:end
timeout 2
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics