ScriptBasic

Support => General Discussions => Topic started by: Script_test on November 11, 2016, 12:51:47 AM

Title: EXECUTE error handle
Post by: Script_test on November 11, 2016, 12:51:47 AM
EXECUTE , fail on error handle when not found a file to execute.

Code: [Select]
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.
Title: Re: EXECUTE error handle
Post by: Support on November 11, 2016, 07:25:50 PM
I have noticed that (0): error &H1:Not enough memory is used as a catch all error message.

Thanks for the heads up! I'll have a peek at the code and see if I can make that error code more relevant.