SVN更新.bat 698 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. @echo off
  2. @echo =========================
  3. @echo author IT
  4. @echo =========================
  5. rem SVN安装目录
  6. set svn_home=C:\Program Files\TortoiseSVN\bin
  7. rem SVN工作目录
  8. set svn_work=E:\lyfz-project.org
  9. rem SVN日志目录
  10. set setup_path=E:\
  11. @echo 正在更新目录 %svn_work%
  12. if exist %svn_work% GOTO :gengxin else GOTO :MK
  13. :MK
  14. @echo 请检查您的工作目录是否正确
  15. echo & pause GOTO :END
  16. @echo 更新完成退出
  17. goto :END
  18. :END
  19. exit
  20. :gengxin
  21. if exist "%setup_path%"\autoUpdate.log (echo update: %date% %time% >> "%setup_path%"\autoUpdate.log) else echo create: %date% %time% >"%setup_path%"\autoUpdate.log
  22. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work%" /notempfile /closeonend:1
  23. exit