cd %~dp0

echo org.csstudio.platform.libs.epics/addr_list=127.0.0.1 pfconrg06.kek.jp pfconrg07.kek.jp erlserv1.kek.jp > %TEMP%\plugin_customization_PF_OFFICE.ini
echo org.csstudio.trends.databrowser2/archives=rdb^|1^|jdbc:postgresql://pfrproc5.kek.jp:9080/archive*rdb^|1^|jdbc:postgresql://abcob12.kek.jp:5432/archive*rdb^|1^|jdbc:postgresql://pfrproc5.kek.jp:9090/archive >> %TEMP%\plugin_customization_PF_OFFICE.ini
echo org.csstudio.trends.databrowser2/urls=jdbc:postgresql://pfrproc5.kek.jp:9090/archive^|cERL*jdbc:postgresql://abcob12.kek.jp:5432/archive^|PF-AR*jdbc:postgresql://pfrproc5.kek.jp:9080/archive^|PF-Ring*jdbc:postgresql://jparc.kek.jp:5432/archive^|J-PARC*jdbc:postgresql://abcob12.kekb.kek.jp:5432/archive^|PF-AR*jdbc:postgresql://pfrproc4.pfring.kek.jp:5432/archive^|PF-Ring*xnds://lcba03.linac.kek.jp:4080/RPC2^|Linac (Channel Archiver)*jdbc:postgresql://lcba09.linac.kek.jp:5432/archive^|Linac (RDB Archive Engine)*kblog:///KEKBLog^|SuperKEKB*jdbc:postgresql://jparc-office.kek.jp:5432/archive^|J-PARC (Office)*xnds://www-linac2.kek.jp:4080/RPC2^|Linac (Channel Archiver)*jdbc:postgresql://lcba09.kek.jp:5432/archive^|Linac (RDB Archive Engine) >> %TEMP%\plugin_customization_PF_OFFICE.ini

echo org.csstudio.opibuilder/color_file=/Operation/PF/color_PF.def >> %TEMP%\plugin_customization_PF_OFFICE.ini
echo org.csstudio.opibuilder/font_file=/Operation/PF/font_PF.def >> %TEMP%\plugin_customization_PF_OFFICE.ini

start css.exe -pluginCustomization %TEMP%\plugin_customization_PF_OFFICE.ini -share_link \\erlnas2w.kek.jp\opi\PF-AR=/Operation/AR,\\erlnas2w.kek.jp\opi\PF-Ring=/Operation/PF,\\erlnas2w.kek.jp\opi\cERL=/Operation/cERL %*
