set ResourceUrl=http://xxxx/xxxx/trunk (等号两边不要加空格)
set ResourcePath=Assets/Rescources
if not exist "%ResourcePath%" (
echo %ResourcePath% not exist, now checkout
TortoiseProc.exe /command:checkout /path:"%ResourcePath%" /url:"%ResourceUrl%" /closeonend:2
)
TortoiseProc.exe /command:update /path:"%ResourcePath%" /closeonend:2