Using wmic to get info
C++ Gurus
11
Posts
4
Posters
5.3k
Views
1
Watching
-
Hi and welcome to devnet,
Are you sure the command is available on XP and at the same place ?
-
Did you read the standard out/error channels of QProcess ?
-
Did you check whether waitForStarted and waitForFinished returns true ?
-
What's the exit code ?
-
Solved same problem a year ago.
This is part of working function from my app:@...
QString Arguments = "/node:" + IP + " " + Args + " get /format:list";
...
Process.setProcessChannelMode (QProcess::MergedChannels);
Process.start ("wmic");
Process.waitForStarted ();
Process.write (Arguments.toUtf8 ());
Process.closeWriteChannel();while (Process.waitForReadyRead ())
{
while (Process.canReadLine())
{
...@