Why not run each command seperately? It would be much easier. For example, 'dir' command can be run like:
Qt Code:
QProcess p; if (p.waitForStarted()) { p.waitForFinished(); qDebug() << p.readAllStandardOutput(); }To copy to clipboard, switch view to plain text mode




Reply With Quote
Bookmarks