Hi Everybody,

i am using a small dos program to push a software to clients and its working great.

But i would like to get errors or information from this exe..

If i run this exe under dos i get for example host not found or copy complete..

How could i get this messages and put for example in a messagebox?

With this script i start my program in hide modus:
Qt Code:
  1. QString zeichen2 = "\"";
  2. QString exePath2 = "psexec.exe";
  3. QString arguments2 = "\\\\" + hostname + " -u " + username + " -p " + password + " -c -d -e -f -i -n 6 " + zeichen2 + path + "\\" + software + zeichen2;
  4. #ifdef Q_OS_WIN32
  5. ShellExecuteW(NULL, NULL, (LPCWSTR)exePath2.toStdWString().data(), (LPCWSTR)arguments2.toStdWString().data(), NULL, SW_HIDE);
  6. #endif
To copy to clipboard, switch view to plain text mode 
Please help me