I need to parse the output of vol
command only to get the id i.e only abcd-1234
, that is being used in QProcess
. Here is my code to get the Volume Serial Number:
QProcess process;
process.start("cmd /c vol C:");
process.waitForFinished(-1);
QByteArray out = process.readAllStandardOutput();
qDebug() << out;
Help me, thanks...