Open a .exe from qt
-
Use QProcess
-
Hi,
Because the path is wrong, either escape your backslashes or use forward slash (which is the right thing to do with Qt)
-
I already did: you didn't escape the backslashes. So in fact you are escaping w twice.
-
@ bool ok=wampOnline.startDetached("C:\wamp\wampmanager.exe");//
if(ok) { qDebug()<<"ok"; } else { qDebug()<<"no"; }@
you mean like this
i tried also this@bool ok=wampOnline.startDetached("C://wamp//wampmanager.exe")@ and this @bool ok=wampOnline.startDetached("C:/wamp/wampmanager.exe")@
but still the same problem -
Also, startDetached is a static function so you're not calling it the right way. You should first look at QProcess documentation to see how to use it properly and check why it's failing for wampmanager.exe