]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/CDMUtilities.cpp
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / CDMUtilities.cpp
index 37f4deb9370e09b7bf2fc7b1130d5ce5ab8f6d1c..e683862c24ec7f022dfb48b72b3c1d7289342cbb 100644 (file)
@@ -117,16 +117,16 @@ namespace CDMUtilities
     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
     return system(comm.c_str());