return system(command.c_str());
}
- int openFileWithCommand(const std::string& file, const std::string& command)
+ int openFileWithCommand(const std::string& file, const std::string& command, const std::string& parameters)
{
#ifdef _WIN32
std::string comm = "start " + command;
if(file != "")
- comm += " \"" + file + "\"";
+ comm += " \"" + file + "\" " + parameters;
#else
std::string comm = command;
if(file != "")
- comm += " \"" + file + "\"";
+ comm += " \"" + file + "\" " + parameters;
comm += " &";
#endif
+ std::cout << "executing: " << comm << std::endl;
return system(comm.c_str());
}