首页
首页

SVN更新

UE引擎经常会出现关闭图形界面后,还有后台进程占用项目内文件的情况。这种情况会导致SVN更新失败。

所以需要先杀掉引擎的进程,然后再更新。

现在有AI帮助写批处理方便多了!!!

1
2
3
4
5
6
7
8
9
10
11
12
@echo off

echo Kill processes with executable paths starting with F:\svn
powershell -Command "Get-Process | Where-Object { $_.Path -like 'F:*svn*' } | ForEach-Object { Stop-Process -Id $_.Id -Force }"

echo Updating SVN repository in F:\svn
start "" "C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:update /path:"F:\svn" /closeonend:0

start "" "C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:log /path:"F:\svn"

exit