Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   psexec (https://www.delphipraxis.net/201572-psexec.html)

Moombas 2. Aug 2019 12:48

psexec
 
Moin,

evtl. kann mir hier einer mit seinen Erfahrungen helfen.

Ich rufe die psexec mit folgenden Parametern (per AutoIT) auf:

Code:
$p = Runwait('psexec.exe -accepteula -n 30 -s \\' & $IP & ' -u USER -p "PASSWORT" -c c:\setup\software\dameware_update\Install_Agent.exe', @ScriptDir, @SW_Show)
und erhalte "-1" als Rückantwort. Weiß jemand was diese "-1" bedeutet?

rwalper 2. Aug 2019 12:55

AW: psexec
 
Wenn Du psexec in der Kommandozeile startest kommt als letzte Zeile:
Zitat:

Error codes returned by PsExec are specific to the applications you
execute, not PsExec.

Moombas 2. Aug 2019 12:58

AW: psexec
 
Das ist irgendwie doof, da die Applikation auch selber geschrieben ist über Autoit und als Rückgabewert "1" geben sollte.
Wenn die Applikation direkt auf dem Ziel PC ausgeführt wird klappt alles problemlos -.-

Moombas 2. Aug 2019 14:35

AW: psexec
 
Problem gelöst...

"The specified application is not on the path." - Pfad angepasst und passt.


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:34 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz