| 208 | } |
| 209 | |
| 210 | void OSModule::launchCommand(const String& command, bool silentMode) |
| 211 | { |
| 212 | int result = 0; |
| 213 | #if JUCE_WINDOWS |
| 214 | if (silentMode) result = WinExec(command.getCharPointer(), SW_HIDE) > 31 ? 0 : 1; |
| 215 | else result = system(command.getCharPointer()); |
| 216 | #else |
| 217 | result = system(command.getCharPointer()); |
| 218 | #endif |
| 219 | if (logOutgoingData->boolValue()) NLOG(niceName, "Launching : " + command); |
| 220 | if (result != 0) NLOGERROR(niceName, "Error trying to launch command : " << command); |
| 221 | outActivityTrigger->trigger(); |
| 222 | } |
| 223 | |
| 224 | void OSModule::launchChildProcess(const String& command) |
| 225 | { |
no test coverage detected