123456789101112131415161718192021222324252627282930313233343536373839 |
- @echo off
- @echo =========================
- @echo author IT
- @echo =========================
- rem SVN安装目录
- set svn_home=C:\Program Files\TortoiseSVN\bin
- rem SVN工作目录
- set svn_work=E:\lyfz-project.org
- rem SVN日志目录
- set setup_path=E:\
- @echo 正在更新目录 %svn_work%
- if exist %svn_work% GOTO :gengxin else GOTO :MK
- :MK
- @echo 请检查您的工作目录是否正确
- echo & pause GOTO :END
- @echo 更新完成退出
- goto :END
- :END
- exit
- :gengxin
- if exist "%setup_path%"\autoUpdate.log (echo update: %date% %time% >> "%setup_path%"\autoUpdate.log) else echo create: %date% %time% >"%setup_path%"\autoUpdate.log
- "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work%" /notempfile /closeonend:1
- exit
|