I didn't realize that setting the path wouldn't impact the process - thanks for that info. When I pass the full path including the executable to ::start, it doesn't get parsed correctly. I also tried the following, which resulted in the same problem:
String path("C:\\Program Files\\My Company\\MyCompanyMonitor");
QString fullPath
= "\"" + path
+ "\\Monitor.exe\"";
fullPath,
"\"" + path + "\"");
if (!ok)
{
NULL,
QString(), tr
("Unable to run the Control Panel\n"));
}
String path("C:\\Program Files\\My Company\\MyCompanyMonitor");
QString fullPath = "\"" + path + "\\Monitor.exe\"";
bool ok = QProcess::startDetached(
fullPath,
QStringList(),
"\"" + path + "\"");
if (!ok)
{
QMessageBox::critical(
NULL, QString(), tr("Unable to run the Control Panel\n"));
}
To copy to clipboard, switch view to plain text mode
Note that I'm passing the full path. It still won't start the program 
I'll try switching to "/" and get back to (this always worked on Linux!).
Thanks
Bookmarks