if ( !cmd )
return;
+ wxLogStatus(_T("'%s' is running please wait..."), cmd.c_str());
+
int code = wxExecute(cmd, TRUE /* sync */);
+
wxLogStatus(_T("Process '%s' terminated with exit code %d."),
cmd.c_str(), code);
m_cmdLast = cmd;
return;
wxProcess *process = new MyProcess(this, cmd);
- if ( !wxExecute(cmd, FALSE /* async */, process) )
+ long pid = wxExecute(cmd, FALSE /* async */, process);
+ if ( !pid )
{
wxLogError(_T("Execution of '%s' failed."), cmd.c_str());
}
else
{
+ wxLogStatus(_T("Process %ld (%s) launched."), pid, cmd.c_str());
+
m_cmdLast = cmd;
}
}