Hi,

This comand is working under dos:
Qt Code:
  1. psexec \\stchps426 -u administrator -p password -c -e -f -n 6 "i:\Adobe Reader7.0.exe" >log.txt 2>&1
To copy to clipboard, switch view to plain text mode 

This is running but the parameter >log.txt 2>&1 not:
Qt Code:
  1. QString zeichen = "\"";
  2. QString zeichen2 = " >log.txt 2>&1";
  3. QString exePath = "psexec.exe";
  4. QString arguments = "\\\\" + hostname + " -u " + username + " -p " + password + " -c -e -f -n 6 " + zeichen + path + "\\" + software + zeichen + zeichen2;
  5. #ifdef Q_OS_WIN32
  6. ShellExecute(NULL, NULL, (LPCWSTR)exePath.toStdWString().data(), (LPCWSTR)arguments.toStdWString().data(), NULL, SW_HIDE);
  7. #endif
To copy to clipboard, switch view to plain text mode 

Can somebody see why?