del ..\main.pak
rmdir /S /Q c:\temp\pack
mkdir c:\temp
mkdir c:\temp\pack

xcopy ..\ambients c:\Temp\Pack\ambients\*.* /Y /R /E
xcopy ..\data c:\Temp\Pack\data\*.* /Y /R /E
xcopy ..\environmental c:\Temp\Pack\environmental\*.* /Y /R /E
xcopy ..\psystem c:\Temp\Pack\psystem\*.* /Y /R /E
xcopy ..\scenes c:\Temp\Pack\scenes\*.* /Y /R /E
xcopy ..\Images c:\Temp\Pack\Images\*.* /Y /R /E
xcopy ..\Sounds c:\Temp\Pack\Sounds\*.* /Y /R /E
xcopy ..\Fonts c:\Temp\Pack\Fonts\*.* /Y /R /E
xcopy ..\Properties c:\Temp\Pack\Properties\*.* /Y /R /E

poppak /P ..\main.pak c:\Temp\Pack

rmdir /S /Q ..\ambients
rmdir /S /Q ..\data
rmdir /S /Q ..\environmental
rmdir /S /Q ..\psystem
rmdir /S /Q ..\scenes
rmdir /S /Q ..\Images
rmdir /S /Q ..\Fonts
rmdir /S /Q ..\Properties
rmdir /S /Q ..\Sounds		

