:modifyAgent
::如下的修改操作主要是修改xml添加run directory,其中str1就是要添加的内容,添加在带有"Command"字符串行的后面一行
set "DirPath=c:\windows\"
cd /D %DirPath%
set "str1=^<WorkingDirectory^>%cd%\^<^/WorkingDirectory^>"
for /f %%i in ('type c:\tmp\release.xml') do (
echo %%i>>c:\tmp\release.xml
echo "%%i"|findstr "<Command>" >nul&&echo %str1%>>c:\tmp\release.xml)
goto import