Running WampServer using a QPushButton

164 Views Asked by At

i am trying to run wampserver using a QPushbutton : when i click on a QPushbutton i have a SLOT runnig

    void LoginFenetre::lancerWampServer(){
//QProcess::startDetached("\"G:/Games/3DM-dhredgoyear/Launcher.exe\"");
    QString wampPath = "C:\\wamp\\wampmanager.exe";
    QProcess *wamplauncher = new QProcess();
    wamplauncher->start(wampPath);
    //QProcess::startDetached("C:\\wamp\\wampmanager.exe");//second solution 
}

neither the first or the second solution is woking when i tryed with launcher.exe or any othe . exe file its warking but it doesnt work with wampserver

0

There are 0 best solutions below