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:
QString arguments2
= "\\\\" + hostname
+ " -u " + username
+ " -p " + password
+ " -c -d -e -f -i -n 6 " + zeichen2
+ path
+ "\\" + software
+ zeichen2;
#ifdef Q_OS_WIN32
ShellExecuteW(NULL, NULL, (LPCWSTR)exePath2.toStdWString().data(), (LPCWSTR)arguments2.toStdWString().data(), NULL, SW_HIDE);
#endif
QString zeichen2 = "\"";
QString exePath2 = "psexec.exe";
QString arguments2 = "\\\\" + hostname + " -u " + username + " -p " + password + " -c -d -e -f -i -n 6 " + zeichen2 + path + "\\" + software + zeichen2;
#ifdef Q_OS_WIN32
ShellExecuteW(NULL, NULL, (LPCWSTR)exePath2.toStdWString().data(), (LPCWSTR)arguments2.toStdWString().data(), NULL, SW_HIDE);
#endif
To copy to clipboard, switch view to plain text mode
Please help me
Bookmarks