@echo off
set xxxsrc=bin
set xxxdst=bin1
if %1==install goto install
if %1==remove goto remove
goto end
:install
xcopy /e /v /i /h /r /y "%xxxsrc%\CustomProfile" "%xxxdst%\CustomProfile">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\dialog_pic" "%xxxdst%\dialog_pic">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\event_viewer_pic" "%xxxdst%\event_viewer_pic">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\pic" "%xxxdst%\pic">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\player_pic" "%xxxdst%\player_pic">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\ptz_pic" "%xxxdst%\ptz_pic">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\ptz_plugin" "%xxxdst%\ptz_plugin">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\Resource" "%xxxdst%\Resource">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\SmartSearchPic" "%xxxdst%\SmartSearchPic">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\Web" "%xxxdst%\Web">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.ocx" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.del" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.dil" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.hm" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.hpf" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.mpf" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.raw" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.wav" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.yuv" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.ini" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.cur" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.avi" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.ico" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.exe" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.dll" "%xxxdst%">nul
xcopy /e /v /i /h /r /y "%xxxsrc%\*.bmp" "%xxxdst%">nul
xcopy /v /r /y "server.ini" "%xxxdst%">nul
xcopy /v /r /y "Live.ini" "%xxxdst%">nul
xcopy /v /r /y "Player.ini" "%xxxdst%">nul
xcopy /v /r /y "FilterGraph.ini" "%xxxdst%">nul
xcopy /v /r /y "SmartDetectUI_Eng.ini" "%xxxdst%\Resource\SmartDetectInfo\.">nul
del /q server.ini
del /q Live.ini
del /q Player.ini
del /q FilterGraph.ini
del /q SmartDetectUI_Eng.ini
goto end
:remove
del /f /s /q "%xxxdst%"
:end
