@echo off
@echo ================自动提交SVN Start===============
rem SVN安装目录,改成自己的工具安装目录
SET svn_home=C:\Program Files\TortoiseSVN\bin
rem SVN项目目录,改成自己的工作目录
SET svn_work_code=C:\Users\Smart\Desktop\1 (2)
rem 有多个目录需要提交可以在下面注释部分按照上面的方法添加
::SET svn_work_gameres=X:\xxgame\xx_scheme_vn
::SET svn_work_product=X:\xxgame\xx_product_vn
@echo 正在提交目录 %svn_work_code%,%svn_work_gameres%,%svn_work_product%
::rem excel和word如果打开状态,会导致不能正常提交,所以要把进程结束(区分wps或office进程)
::rem taskkill /f /im et.exe
::rem taskkill /f /im wps.exe
::rem Echo 杀死进程完毕
rem 执行SVN提交命令,svn目录为一个的时候
"%svn_home%"\TortoiseProc.exe/command:commit /path:"%svn_work_code%" /notempfile /closeonend:0
rem 执行SVN提交命令,提交对话框不自动关闭,并且有多个svn目录需要提交模板
::"%svn_home%"\TortoiseProc.exe/command:commit /path:"%svn_work_code%*%svn_work_gameres%*%svn_work_product%" /notempfile /closeonend:0
echo ==============自动提交SVN Finish==============,修改完成将文件保存为xxx.bat文件
exit
SVN自动更新提交脚本.zip(windows版本)
5星 · 超过95%的资源 需积分: 50 73 浏览量
2019-07-31
17:48:13
上传
评论 2
收藏 2KB ZIP 举报
st奔跑的小绵羊
- 粉丝: 8
- 资源: 5