#include "wx/numdlg.h"
#include "wx/textdlg.h"
#include "wx/ffile.h"
+#include "wx/stopwatch.h"
#include "wx/process.h"
if ( sync )
{
- wxLogStatus( _T("'%s' is running please wait..."), cmd.c_str() );
+ wxLogStatus("\"%s\" is running please wait...", cmd);
+
+ wxStopWatch sw;
wxArrayString output, errors;
int code = wxExecute(cmd, output, errors);
- wxLogStatus(_T("Command '%s' terminated with exit code %d."),
- cmd.c_str(), code);
+ wxLogStatus("Command \"%s\" terminated after %ldms; exit code %d.",
+ cmd, sw.Time(), code);
if ( code != -1 )
{
s_filename = filename;
- wxString ext = filename.AfterFirst(_T('.'));
+ wxString ext = filename.AfterLast(_T('.'));
wxFileType *ft = wxTheMimeTypesManager->GetFileTypeFromExtension(ext);
if ( !ft )
{