On the other hand, when I'm trying lunch outlook.exe by:
foo
->setProcessChannelMode
(QProcess::MergedChannels);
foo
->setEnvironment
( QProcess::systemEnvironment() );
foo->start( "outlook.exe" );
if( !foo->waitForFinished() ) {
qDebug
() <<
QDir( foo
->workingDirectory
() ).
entryList();
qDebug() << "Fail:" << foo->errorString();
qDebug() << "Exit = " << foo->exitCode();
} else {
qDebug() << "Output:" << foo->readAll();
}
QProcess* foo= new QProcess( this );
foo->setProcessChannelMode(QProcess::MergedChannels);
foo->setEnvironment( QProcess::systemEnvironment() );
foo->start( "outlook.exe" );
if( !foo->waitForFinished() ) {
qDebug() << QDir( foo->workingDirectory() ).entryList();
qDebug() << "Fail:" << foo->errorString();
qDebug() << "Exit = " << foo->exitCode();
} else {
qDebug() << "Output:" << foo->readAll();
}
To copy to clipboard, switch view to plain text mode
I take a "Process failed to start" despite the fact that if i type "outlook.exe" in Stat->run it's working :/
Bookmarks