工作中用到的一些批处理

SVN项目文件完整备份,将项目文件分别备份到了两个地方,一个是本地硬盘,另一个是局域网上的另外一台服务器共享目录上。

SET repo_code_dir=D:Repositories项目代码
SET backup_dir=E:svnbackupRepositoriesall\%date:~0,4%%date:~5,2%%date:~8,2%
SET backup_remotedir=\xx.xxx.xxx.xxxsvnbackupRepositoriesall\%date:~0,4%%date:~5,2%%date:~8,2%
if not exist %backup_dir% md %backup_dir%
svnadmin hotcopy %repo_code_dir% %backup_dir%项目代码
net use \xx.xxx.xxx.xxxsvnbackup Mypassword /user:bakuser
if not exist %backup_remotedir% md %backup_remotedir%
svnadmin hotcopy %repo_code_dir% %backup_remotedir%项目代码

如果是增量备份,则后面加上“--incremental”参数,例如:

svnadmin hotcopy %repo_code_dir% %backup_incre_dir%项目代码 --incremental

maven本地注册jar包

mvn install:install-file -DgroupId=com.lowagie -DartifactId=itext -Dversion=2.1.7.js2 -Dpackaging=jar -Dfile=%CD%itext-2.1.7.js2.jar

OpenOffice服务启动

cd d:Program Files (x86)OpenOffice 4program
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
原文地址:https://www.cnblogs.com/liuxin-listenx/p/5713971.html