问题
I am using a scheduled task to run a .bat script which updates my SVN repositories.
The scheduled task runs every hour. It still creating a new process of "TortoiseProc.exe", every time I run the script, until the are a lot of open processes and the CPU is at 99%. The script is running fine, but unfortunately the processes won't be closed automatically.
This is how my .bat looks like:
CD C:\Program Files\TortoiseSVN\bin\
START /wait TortoiseProc.exe /command:update /path:"D:\somePath" /closeonend:1
START /wait TortoiseProc.exe /command:update /path:"D:\somePath" /closeonend:1
As you can see I added /closeonend:1
which means the dialog should be closed if no error occurs.
When I run the .bat script manually, no process is created.
Does someone has a suggestion, what to do? I really would appreciate it!
回答1:
Don't use tortoiseproc
for unattended/non-interactive scripting (automation) - use svn.exe
instead, which is shipped with TortoiseSVN.
CD C:\Program Files\TortoiseSVN\bin\
svn update "D:\somePath"
svn update "D:\somePath"
来源:https://stackoverflow.com/questions/43039658/tortoisesvn-command-keeps-open-processes