system("application.exe 2>&1 | logscript.bat &"); open3(NULL, ">&NULL", ">&NULL", "application.exe 2>&1 | logscript.bat &");