Put some code in to output Commandline$() to a text file.
Probably a path issue or something.
Also, it seems that the program is not doing execfile from the compiled main.exe It only works when it's being run from the blitz ide.
When you run code in the IDE, all it does is compile a temporary EXE and runs it.Probably a path issue or something.