批处理指令_同步数据脚本

@echo off

set Path1=H:dir1

set Path2=H:dir2

set Path3=H:dir3

set Path4=H:dir4

 

cd C:\Program Files\TortoiseSVN\bin

start TortoiseProc.exe /command:update /path:"%Path1%*%Path2%*%Path3%*%Path4%" /closeonend:3

@pause

for /f "delims=" %%i in ("%Path1%") do (copy "%%i" "%Path3%")

for /f "delims=" %%i in ("%Path2%") do (copy "%%i" "%Path4%")

@pause

start TortoiseProc.exe /command:commit /path:"%Path3%" /closeonend:0

start TortoiseProc.exe /command:commit /path:"%Path4%" /closeonend:0

posted @ 2019-10-09 18:36  倔强的小花  Views(270)  Comments(0)    收藏  举报