setlocal enableextensions

for %%i in (
mxdwdui.ini
mxdwdui.gpd
mxdwdui.dll
mxdwdrv.dll
msxpsinc.ppd
msxpsinc.gpd
msxpsdrv.inf
filterpipelineprintproc.dll
) do (
IF EXIST %%i move /y %%i DRIVER\
IF EXIST ..\drivertmp\%%i move /y ..\drivertmp\%%i DRIVER\
)

::Do not use rd /s because there may be other files needed by other addons in ..\drivertmp
::Anyway if each addon does same steps like this addon, the directory ..\drivertmp should be removed at last
IF EXIST ..\drivertmp rd ..\drivertmp

DEL /f /a %~f0
