@echo off pushd %~dp0 for %%i in (*.ui) do pyuic5 "%%i" -o "%%~ni_ui.py"