#include #include #include #include #include #include #include #include int main(int argc, char* argv[]) { // Split path, progname: std::string progname; int l = (int)strlen(argv[0]); int lastbs = 0; char * tmp = getenv("TMP"); if (tmp == NULL) tmp = getenv("TEMP"); std::string logpath = tmp; logpath += "\\procwrapper.log"; std::ofstream file(logpath.c_str(), std::ios::app); file< 0) { argv[0][lastbs+1] = '\0'; realprog = argv[0]; realprog += "_"; realprog += progname; } else { realprog = "_"; realprog += argv[0]; } std::cout<