@echo off setlocal enabledelayedexpansion rem set "current_folder=%~dp0" set "source_folder=%current_folder%Content\CommonLiberal\Texture" set "target_folder=%current_folder%pic" echo start from %source_folder% echo move to %target_folder% rem for /r "%source_folder%" %%i in (*) do ( set "filename=%%~nxi" if /i not "%%~xi"==".uasset" ( move "%%i" "%target_folder%\!filename!" ) ) echo compled! pause