How could we adjust this code to windows command?
should we replace /bin/sh with win32 or something?
thanks
SunnySan
How could we adjust this code to windows command?
should we replace /bin/sh with win32 or something?
thanks
SunnySan
Hi,
use cmd.exe with /c
HTH, BerndQt Code:
QStringList arguments; arguments << "/c dir /b e:\\test\\*.txt | sort"; QProcess exec; exec.start("cmd.exe", arguments); exec.waitForFinished(); qDebug() << exec.readAllStandardOutput();To copy to clipboard, switch view to plain text mode
Bookmarks