赞
踩
#include <QCoreApplication> #include <QDir> #include <QProcess> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QString zipFilePath = "C:/tast/123.zip"; QString destinationDir = "C:/tast/"; QProcess unzipProcess; unzipProcess.start("powershell", QStringList() << "-Command" << "Expand-Archive" << "-Path" << zipFilePath << "-DestinationPath" << destinationDir); unzipProcess.waitForFinished(); return a.exec(); }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。