$exitcode = system('path/to/your/file.exe arg1 arg2'); $exitcode = $exitcode >> 8;