QString command = "sc create YourServiceName binPath= \""+application_path+"\" start= auto";
QProcess::startDetached( command );
转载于:https://www.cnblogs.com/coolbear/p/5157422.html
QString command = "sc create YourServiceName binPath= \""+application_path+"\" start= auto";
QProcess::startDetached( command );
转载于:https://www.cnblogs.com/coolbear/p/5157422.html