set GameDir=
if not defined GameDir for /f "tokens=2*" %%a in (
 'REG QUERY HKLM\SOFTWARE\Wow6432Node\LucasArts\KotOR2\ /v Path 2^>NUL ^| findstr Path'
  ) do set GameDir=%%~b

cd %GameDir%

del /q Streamvoice\650\650jedi\650650jedi130.wav
del /q Streamvoice\650\650jedi\650650jedi186.wav
del /q Streamvoice\650\650jedi\650650JEDI187.wav
del /q Streamvoice\650\650jedi\650650JEDI188.wav
del /q Streamvoice\650\650jedi\650650jedi190.wav
del /q Streamvoice\650\650jedi\650650jedi0189.wav
del /q Streamvoice\650\650jedi\650650jedi0191.wav
del /q Streamvoice\650\650jedi\650650jedi192.wav
del /q Streamvoice\805\vash01\805vash01001.wav
del /q Streamvoice\805\vash01\805vash01002.wav
del /q Streamvoice\805\vash01\805vash01003.wav
del /q Streamvoice\805\vash01\805vash01004.wav
del /q Streamvoice\805\vash01\805vash01005.wav
del /q Streamvoice\805\vash01\805vash01006.wav
del /q Streamvoice\805\vash01\805vash01007.wav
del /q Streamvoice\805\vash01\805vash01008.wav
del /q Streamvoice\805\vash01\805vash01009.wav
del /q Streamvoice\805\vash01\805vash01010.wav
del /q Streamvoice\805\vash01\805vash01011.wav
del /q Streamvoice\805\vash01\805vash01012.wav
del /q Streamvoice\805\vash01\805vash01013.wav
del /q Streamvoice\805\vash01\805vash01014.wav
del /q Streamvoice\805\vash01\805VASH01015.wav
del /q Streamvoice\805\vash01\805VASH01016.wav
del /q Streamvoice\805\vash01\805VASH01017.wav
del /q Streamvoice\805\vash01\805VASH01018.wav
del /q Streamvoice\805\vash01\805VASH01019.wav
del /q Streamvoice\805\vash01\805VASH01020.wav
del /q Streamvoice\805\vash01\805VASH01021.wav
del /q Streamvoice\805\vash01\805VASH01022.wav
del /q Streamvoice\805\vash01\805VASH01023.wav
del /q Streamvoice\805\vash01\805VASH01024.wav
del /q Streamvoice\805\vash01\805VASH01025.wav
del /q Streamvoice\805\vash01\805VASH01026.wav
del /q Streamvoice\805\vash01\805VASH01027.wav
del /q Streamvoice\805\vash01\805vash01028.wav
del /q Streamvoice\805\vash01\805vash01029.wav
del /q Streamvoice\805\vash01\805vash01030.wav
del /q Streamvoice\805\vash01\805vash01031.wav
del /q Streamvoice\805\vash01\805vash01032.wav
del /q Streamvoice\805\vash01\805vash01033.wav
del /q Streamvoice\805\vash01\805vash01034.wav
del /q Streamvoice\805\vash01\805vash01035.wav
del /q Streamvoice\805\vash01\805vash01036.wav
del /q Streamvoice\805\vash01\805vash01037.wav
del /q Streamvoice\805\vash01\805vash01038.wav
del /q Streamvoice\805\vash01\805vash01040.wav
del /q Streamvoice\807\IS24_01\807IS24_01001.wav
del /q Streamvoice\807\IS24_01\807IS24_01002.wav
del /q Streamvoice\807\IS24_01\807IS24_01003.wav
del /q Streamvoice\807\IS24_01\807IS24_01004.wav
del /q Streamvoice\807\IS24_01\807IS24_01005.wav
del /q Streamvoice\807\IS24_01\807IS24_01006.wav
del /q Streamvoice\807\IS24_01\807IS24_01007.wav
del /q Streamvoice\807\IS24_01\807IS24_01008.wav
del /q Streamvoice\807\IS24_01\807IS24_01009.wav
del /q Streamvoice\807\IS24_01\807IS24_01010.wav
del /q Streamvoice\807\IS24_01\807IS24_01011.wav
del /q Streamvoice\807\IS24_01\807IS24_01012.wav
del /q Streamvoice\807\IS24_01\807IS24_01013.wav
del /q Streamvoice\807\IS24_01\807IS24_01014.wav
del /q Streamvoice\807\IS24_01\807IS24_01015.wav
del /q Streamvoice\807\IS24_01\807IS24_01016.wav
del /q Streamvoice\807\IS24_01\807IS24_01017.wav
del /q Streamvoice\807\IS24_01\807IS24_01018.wav
del /q Streamvoice\807\IS24_01\807IS24_01019.wav
del /q Streamvoice\807\IS24_01\807IS24_01020.wav
del /q Streamvoice\807\IS24_01\807IS24_01021.wav
del /q Streamvoice\807\IS24_01\807IS24_01022.wav
del /q Streamvoice\807\IS24_01\807IS24_01023.wav
del /q Streamvoice\806\kaah01\806kaah01001.mp3
del /q Streamvoice\806\kaah01\806kaah01002.mp3
del /q Streamvoice\806\kaah01\806kaah01003.mp3
del /q Streamvoice\806\kaah01\806kaah01004.mp3
del /q Streamvoice\806\kaah01\806kaah01005.mp3
del /q Streamvoice\806\kaah01\806kaah01006.mp3
del /q Streamvoice\806\kaah01\806kaah01007.mp3
del /q Streamvoice\806\kaah01\806kaah01008.mp3
del /q Streamvoice\GBL\lrn_form\gbllrn_form080.wav
del /q Streamvoice\GBL\lrn_form\gbllrn_form081.wav
del /q Streamvoice\GBL\lrn_form\gbllrn_form082.wav
del /q Streamvoice\804\b4r5\804b4r5004.wav
del /q Streamvoice\804\b4r5\804b4r5005.wav
del /q Streamvoice\804\b4r5\804b4r5006.wav
del /q Streamvoice\804\b4r5\804b4r5001.wav
del /q Streamvoice\GBL\T3M4\gblt3m4002.wav
del /q Streamvoice\GBL\T3M4\gblt3m4015.wav
del /q Streamvoice\GBL\T3M4\gblt3m4019.wav
del /q Streamvoice\GBL\T3M4\gblt3m4148.wav
del /q Streamvoice\GBL\T3M4\gblt3m4161.wav
del /q Streamvoice\GBL\T3M4\gblt3m4172.wav
del /q Streamvoice\803\kaah_01\803kaah_01001.mp3
del /q Streamvoice\803\kaah_01\803kaah_01002.mp3
del /q Streamvoice\803\kaah_01\803kaah_01003.mp3
del /q Streamvoice\803\kaah_01\803kaah_01004.mp3
del /q Streamvoice\803\kaah_01\803kaah_01005.mp3
del /q Streamvoice\803\kaah_01\803kaah_01006.mp3
del /q Streamvoice\803\kaah_01\803kaah_01007.mp3
del /q Streamvoice\803\kaah_01\803kaah_01008.mp3
del /q Streamvoice\803\kaah_01\803kaah_01009.mp3
del /q Streamvoice\803\kaah_01\803kaah_01010.mp3
del /q Streamvoice\803\kaah_01\803kaah_01011.mp3
del /q Streamvoice\803\kaah_01\803kaah_01012.mp3
del /q Streamvoice\803\kaah_01\803kaah_01013.mp3
del /q Streamvoice\803\kaah_01\803kaah_01014.mp3
del /q Streamvoice\803\kaah_01\803kaah_01015.mp3
del /q Streamvoice\803\kaah_01\803kaah_01016.mp3
del /q Streamvoice\803\kaah_01\803kaah_01017.mp3
del /q Streamvoice\803\kaah_01\803kaah_01018.mp3
del /q Streamvoice\803\kaah_01\803kaah_01019.mp3
del /q Streamvoice\803\kaah_01\803kaah_01020.mp3
del /q Streamvoice\803\kaah_01\803kaah_01021.mp3
del /q Streamvoice\803\kaah_01\803kaah_01022.mp3
del /q Streamvoice\803\kaah_01\803kaah_01023.mp3
del /q Streamvoice\803\kaah_01\803kaah_01024.mp3
del /q Streamvoice\803\kaah_01\803kaah_01025.mp3
del /q Streamvoice\803\kaah_01\803kaah_01026.mp3
del /q Streamvoice\803\kaah_01\803kaah_01027.mp3
del /q Streamvoice\803\kaah_01\803kaah_01028.mp3
del /q Streamvoice\803\kaah_01\803kaah_01029.mp3
del /q Streamvoice\803\kaah_01\803kaah_01030.mp3
del /q Streamvoice\803\kaah_01\803kaah_01031.wav
del /q Streamvoice\803\kaah_01\803kaah_01032.mp3
del /q Streamvoice\803\kaah_01\803kaah_01033.mp3
del /q Streamvoice\803\kaah_01\803kaah_01034.mp3
del /q Streamvoice\803\kaah_01\803kaah_01035.mp3
del /q Streamvoice\803\kaah_01\803kaah_01036.mp3
del /q Streamvoice\803\kaah_01\803kaah_01037.mp3
del /q Streamvoice\803\kaah_01\803kaah_01038.mp3
del /q Streamvoice\803\kaah_01\803kaah_01039.mp3
del /q Streamvoice\803\kaah_01\803kaah_01040.mp3
del /q Streamvoice\803\kaah_01\803kaah_01041.mp3
del /q Streamvoice\803\kaah_01\803kaah_01042.mp3
del /q Streamvoice\803\kaah_01\803kaah_01043.mp3
del /q Streamvoice\803\kaah_01\803kaah_01044.mp3
del /q Streamvoice\803\kaah_01\803kaah_01045.mp3
del /q Streamvoice\803\kaah_01\803kaah_01046.mp3
del /q Streamvoice\803\kaah_01\803kaah_01047.mp3
del /q Streamvoice\803\kaah_01\803kaah_01048.mp3
del /q Streamvoice\803\kaah_01\803kaah_01049.mp3
del /q Streamvoice\803\kaah_01\803kaah_01050.mp3
del /q Streamvoice\803\kaah_01\803kaah_01051.mp3
del /q Streamvoice\803\kaah_01\803kaah_01052.mp3
del /q Streamvoice\803\kaah_01\803kaah_01053.mp3
del /q Streamvoice\803\kaah_01\803kaah_01054.mp3
del /q Streamvoice\803\kaah_01\803kaah_01055.mp3
del /q Streamvoice\803\kaah_01\803kaah_01056.mp3
del /q Streamvoice\805\805SION\805805SION001.wav
del /q Streamvoice\805\805SION\805805SION002.wav
del /q Streamvoice\805\M478_01\805M478_01001.mp3
del /q Streamvoice\805\M478_01\805M478_01002.mp3
del /q Streamvoice\805\M478_01\805M478_01003.mp3
del /q Streamvoice\805\M478_01\805M478_01004.mp3
del /q Streamvoice\805\M478_01\805M478_01005.mp3
del /q Streamvoice\805\M478_01\805M478_01006.mp3
del /q Streamvoice\805\M478_01\805M478_01007.mp3
del /q Streamvoice\805\M478_01\805M478_01008.mp3
del /q Streamvoice\805\M478_01\805M478_01009.mp3
del /q Streamvoice\805\M478_01\805M478_01010.mp3
del /q Streamvoice\805\M478_01\805M478_01011.mp3
del /q Streamvoice\805\M478_01\805M478_01012.mp3
del /q Streamvoice\805\M478_01\805M478_01013.mp3
del /q Streamvoice\805\M478_01\805M478_01014.mp3
del /q Streamvoice\805\M478_01\805M478_01016.mp3
del /q Streamvoice\805\M478_01\805M478_01017.mp3
del /q Streamvoice\805\M478_01\805M478_01018.mp3
del /q Streamvoice\805\M478_01\805M478_01019.mp3
del /q Streamvoice\805\M478_01\805M478_01020.mp3
del /q Streamvoice\805\M478_01\805M478_01021.mp3
del /q Streamvoice\805\M478_01\805M478_01022.mp3
del /q Streamvoice\805\M478_01\805M478_01023.mp3
del /q Streamvoice\805\M478_01\805M478_01024.mp3
del /q Streamvoice\805\M478_01\805M478_01025.mp3
del /q Streamvoice\805\M478_01\805m478_01026.mp3
del /q Streamvoice\805\M478_01\805M478_01027.mp3
del /q Streamvoice\805\M478_01\805M478_01028.mp3
del /q Streamvoice\805\M478_01\805m478_01029.mp3
del /q Streamvoice\805\M478_01\805M478_01030.mp3
del /q Streamvoice\805\M478_01\805M478_01031.mp3
del /q Streamvoice\805\M478_01\805M478_01032.mp3
del /q Streamvoice\805\M478_01\805M478_01033.mp3
del /q Streamvoice\805\M478_01\805M478_01034.mp3
del /q Streamvoice\805\M478_01\805M478_01035.mp3
del /q Streamvoice\805\M478_01\805M478_01036.mp3
del /q Streamvoice\805\M478_01\805M478_01037.mp3
del /q Streamvoice\805\M478_01\805M478_01038.mp3
del /q Streamvoice\805\M478_01\805M478_01039.mp3
del /q Streamvoice\805\M478_01\805M478_01040.mp3
del /q Streamvoice\805\M478_01\805M478_01041.mp3
del /q Streamvoice\805\M478_01\805M478_01042.mp3
del /q Streamvoice\805\M478_01\805M478_01043.mp3
del /q Streamvoice\805\M478_01\805M478_01045.mp3
del /q Streamvoice\805\M478_01\805M478_01046.mp3
del /q Streamvoice\805\M478_01\805M478_01047.mp3
del /q Streamvoice\805\M478_01\805M478_01044.mp3
del /q streamvoice\702\Vash\702VASH008.wav
del /q Streamvoice\806\ES05_01\806ES05_01001.wav
del /q Streamvoice\806\ES05_01\806ES05_01002.wav
del /q Streamvoice\806\ES05_01\806ES05_01003.wav
del /q Streamvoice\806\ES05_01\806ES05_01004.wav
del /q Streamvoice\806\ES05_01\806ES05_01005.wav
del /q Streamvoice\806\ES05_01\806ES05_01006.wav
del /q Streamvoice\806\ES05_01\806ES05_01007.wav
del /q Streamvoice\806\ES05_01\806ES05_01008.wav
del /q Streamvoice\806\ES05_01\806ES05_01009.wav
del /q Streamvoice\806\ES05_01\806ES05_01010.wav
del /q Streamvoice\806\ES05_01\806ES05_01012.wav
del /q Streamvoice\806\ES05_01\806ES05_01011.wav

del /q override\*.*

del /q modules\*.*

del /q lips\*.*

del /q movies\DroMov04.bik

del /q movies\DroMov02.bik

del /q TexturePacks\swpc_tex_gui.erf

xcopy "Hard As Hell\Backup\Override\*.*" override\ /Y

xcopy "Hard As Hell\Backup\Modules\*.*" modules\ /Y

xcopy "Hard As Hell\Backup\lips\*.*" lips\ /Y

xcopy "Hard As Hell\Backup\TexturePacks\swpc_tex_gui.erf" TexturePacks\ /Y

xcopy "Hard As Hell\Backup\Dialog_tlk\*.*" /Y

xcopy "Hard As Hell\Backup\Voice\702VASH008.wav" streamvoice\702\Vash\ /Y

del /q /s "Hard As Hell\Backup\"