QProcess::startDetached("cmd", QStringList() << "/c" << "ftp.bat", "c:/ftp/send");
void nomkl_num::update_ver(QNetworkReply* update_ver){ get_prog.setUrl(QUrl("http://"+host.trimmed()+"/zakaz.exe")); man_prog.get(get_prog); //Отправляем запрос connect(&man_prog,SIGNAL(finished(QNetworkReply*)),this,SLOT(get_program(QNetworkReply*)));}void nomkl_num::get_program(QNetworkReply *prog){ QFile prog_name("updates/"+prog->url().path().remove("/")); prog_name.open(QIODevice::WriteOnly); QDataStream data(&prog_name); data << prog->readAll(); prog_name.close();}
C++ (Qt)prog_name.write(prog->readAll());