EXECUTE , fail on error handle when not found a file to execute.
directorio="c:\\scriptbasic\\ejemplo\\"
ejecutar= directorio & "command.bat"
llamar_externo = EXECUTE (ejecutar,-1,pid )
(0): error &H1:Not enough memory
It can lead to confusion. When you really have to say, the file is not found.
I hope this can be helpful.