rem --------------------------------------------------------
rem INSTALLATION:
rem 	PUT this batch file into  dvbdream\plugins folder
rem
rem USAGE:
rem		1) PUT all plugins into dvbdream\plugins\pip00 folder
rem     2) then run this batch file
rem --------------------------------------------------------


rem CLEAN the folders before copying
rd /S /Q pip01
rd /S /Q pip02
rd /S /Q pip03
rd /S /Q pip04
rd /S /Q pip05
rd /S /Q pip06
rd /S /Q pip07
rd /S /Q pip08
rd /S /Q pip09
rd /S /Q pip10
rd /S /Q pip11
rd /S /Q pip12
rd /S /Q pip13
rd /S /Q pip14
rd /S /Q pip15
rd /S /Q pip16
rd /S /Q pip17
rd /S /Q pip18
rd /S /Q pip19

md pip01
md pip02
md pip03
md pip04
md pip05
md pip06
md pip07
md pip08
md pip09
md pip10
md pip11
md pip12
md pip13
md pip14
md pip15
md pip16
md pip17
md pip18
md pip19




rem COPY all files from pip00 to other pip** folders
xcopy pip00 pip01 /Y /E /C
xcopy pip00 pip02 /Y /E /C
xcopy pip00 pip03 /Y /E /C
xcopy pip00 pip04 /Y /E /C
xcopy pip00 pip05 /Y /E /C
xcopy pip00 pip06 /Y /E /C
xcopy pip00 pip07 /Y /E /C
xcopy pip00 pip08 /Y /E /C
xcopy pip00 pip09 /Y /E /C
xcopy pip00 pip10 /Y /E /C
xcopy pip00 pip11 /Y /E /C
xcopy pip00 pip12 /Y /E /C
xcopy pip00 pip13 /Y /E /C
xcopy pip00 pip14 /Y /E /C
xcopy pip00 pip15 /Y /E /C
xcopy pip00 pip16 /Y /E /C
xcopy pip00 pip17 /Y /E /C
xcopy pip00 pip18 /Y /E /C
xcopy pip00 pip19 /Y /E /C


rem COPY *.key files to root folder
copy pip00\*.key .\ /Y
copy pip00\*.key ..\ /Y


rem Delete PIP-incompatible plugins from PIP folders
del pip01\mdteletext.dll /Q /F
del pip02\mdteletext.dll /Q /F
del pip03\mdteletext.dll /Q /F
del pip04\mdteletext.dll /Q /F
del pip05\mdteletext.dll /Q /F
del pip06\mdteletext.dll /Q /F
del pip07\mdteletext.dll /Q /F
del pip08\mdteletext.dll /Q /F
del pip09\mdteletext.dll /Q /F
del pip10\mdteletext.dll /Q /F
del pip11\mdteletext.dll /Q /F
del pip12\mdteletext.dll /Q /F
del pip13\mdteletext.dll /Q /F
del pip14\mdteletext.dll /Q /F
del pip15\mdteletext.dll /Q /F
del pip16\mdteletext.dll /Q /F
del pip17\mdteletext.dll /Q /F
del pip18\mdteletext.dll /Q /F
del pip19\mdteletext.dll /Q /F

del pip01\ss2diseqc.dll /Q /F
del pip02\ss2diseqc.dll /Q /F
del pip03\ss2diseqc.dll /Q /F
del pip04\ss2diseqc.dll /Q /F
del pip05\ss2diseqc.dll /Q /F
del pip06\ss2diseqc.dll /Q /F
del pip07\ss2diseqc.dll /Q /F
del pip08\ss2diseqc.dll /Q /F
del pip09\ss2diseqc.dll /Q /F
del pip10\ss2diseqc.dll /Q /F
del pip11\ss2diseqc.dll /Q /F
del pip12\ss2diseqc.dll /Q /F
del pip13\ss2diseqc.dll /Q /F
del pip14\ss2diseqc.dll /Q /F
del pip15\ss2diseqc.dll /Q /F
del pip16\ss2diseqc.dll /Q /F
del pip17\ss2diseqc.dll /Q /F
del pip18\ss2diseqc.dll /Q /F
del pip19\ss2diseqc.dll /Q /F