system("cp -R /media/sda1/imya.zip /home/root");system("unzip imya.zip /home/root");system( "imya.bat");
system("cp -R /media/sda1/imya.zip /home/root && unzip imya.zip /home/root && imya.bat");
#include <QDir>#include <iostream>int main(int argc, char *argv[]){ QCoreApplication app(argc, argv); QDir dir; dir.setFilter(QDir::Files | QDir::Hidden | QDir::NoSymLinks); dir.setSorting(QDir::Size | QDir::Reversed); QFileInfoList list = dir.entryInfoList(); std::cout << " Bytes Filename" << std::endl; for (int i = 0; i < list.size(); ++i) { QFileInfo fileInfo = list.at(i); std::cout << qPrintable(QString("%1 %2").arg(fileInfo.size(), 10) .arg(fileInfo.fileName())); std::cout << std::endl; } return 0;}
QProcess *proc = new QProcess(); proc->start(File_Name); if (proc->Starting) { proc->setProcessChannelMode( QProcess::MergedChannels ); proc->setReadChannel(QProcess::StandardError); if (proc->Running) { proc->waitForReadyRead(30000);}; }; proc->close(); delete proc;