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
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:
QString zeichen2
= " >log.txt 2>&1";
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
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
To copy to clipboard, switch view to plain text mode
Can somebody see why?
Bookmarks