raphaelf
20th June 2008, 11:36
Hi,
This comand is working under dos:
psexec \\stchps426 -u administrator -p password -c -e -f -n 6 "i:\Adobe Reader7.0.exe" >log.txt 2>&1
This is running but the parameter >log.txt 2>&1 not:
QString zeichen = "\"";
QString zeichen2 = " >log.txt 2>&1";
QString exePath = "psexec.exe";
QString arguments = "\\\\" + hostname + " -u " + username + " -p " + password + " -c -e -f -n 6 " + zeichen + path + "\\" + software + zeichen + zeichen2;
#ifdef Q_OS_WIN32
ShellExecute(NULL, NULL, (LPCWSTR)exePath.toStdWString().data(), (LPCWSTR)arguments.toStdWString().data(), NULL, SW_HIDE);
#endif
Can somebody see why? :crying:
This comand is working under dos:
psexec \\stchps426 -u administrator -p password -c -e -f -n 6 "i:\Adobe Reader7.0.exe" >log.txt 2>&1
This is running but the parameter >log.txt 2>&1 not:
QString zeichen = "\"";
QString zeichen2 = " >log.txt 2>&1";
QString exePath = "psexec.exe";
QString arguments = "\\\\" + hostname + " -u " + username + " -p " + password + " -c -e -f -n 6 " + zeichen + path + "\\" + software + zeichen + zeichen2;
#ifdef Q_OS_WIN32
ShellExecute(NULL, NULL, (LPCWSTR)exePath.toStdWString().data(), (LPCWSTR)arguments.toStdWString().data(), NULL, SW_HIDE);
#endif
Can somebody see why? :crying: