Quote Originally Posted by raphaelf View Post
but its not possible to run this psexec.exe in hide modus?
Because when i start psexec a dos window opens..

Its possible to hide this?
Qt Code:
  1. QString exePath = "psexec.exe";
  2. QString arguments = "\\\\stchps426 -u etrust -p etrust01 -i \\\\stchps426\\c$\\notes.exe";
  3. #ifdef Q_OS_WIN32
  4. ShellExecuteW(NULL, NULL, (LPCWSTR)exePath.toStdWString().data(), (LPCWSTR)arguments.toStdWString().data(), NULL, SW_HIDE);
  5. #endif
To copy to clipboard, switch view to plain text mode