ITeye博客

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

floydd · 2012-03-10 16:27 · bak · wincmd · 编程语言 · Markdown

@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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。