@echo off setlocal for /D %%A in (. %1) do set open=%%~dpnA start "" cmd /c "chcp 65001 & %VID_HOME%\tools\lite\lite.exe %open%"