@echo off
set BackupFolder=C:\Users\Admin\Backup
set UsrName=Max
set RecoverDrive=D:

rem xcopy /F /H /S /R /Y %BackupFolder%\User\AppData\Local\TileDataLayer "%RecoverDrive%\Users\%UsrName%\AppData\Local\TileDataLayer"
rmdir /s /q "%RecoverDrive%\Users\%UsrName%\AppData\Local\TileDataLayer"
mkdir "%RecoverDrive%\Users\%UsrName%\AppData\Local\TileDataLayer"
xcopy /F /H /S /R /Y %BackupFolder%\TileDataLayer "%RecoverDrive%\Users\%UsrName%\AppData\Local\TileDataLayer"
attrib -h -r -s "%RecoverDrive%\Users\%UsrName%\AppData\Local\Microsoft\Windows\UsrClass.*"
del "%RecoverDrive%\Users\%UsrName%\AppData\Local\Microsoft\Windows\UsrClass.*"
rem xcopy /H E:\Backup\User\AppData\Local\Microsoft\Windows\UsrClass.dat "%RecoverDrive%\Users\%UsrName%\AppData\Local\Microsoft\Windows"
