@echo onset cdr="%~d0%~p0"echo %cdr%if exist %cdr%programa.exe START %cdr% programa.exeexit
@Echo OFF Set "file=%~dp0programa.exe" Echo "%~dp0"If /I Exist "%file%" ( Start /B "" "%file%") Exit /B 0