Hi @all
wie kann ich einen Programm das mehrfach ausgeführt ist (Robocopy) über die Prozesse in ein array zwingen und die Anzahl zählen
mein ansatz:
Spoiler anzeigen
[autoit]
#include <Array.au3>
[/autoit] [autoit][/autoit] [autoit]Local $arrProz = _ProzFinder()
;~ MsgBox(0,"",$arrProz)
_ArrayDisplay($arrProz)
Exit
Func _ProzFinder()
Dim $arrProz
Local $strComputer = "."
Local $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\CIMV2")
Local $colItems = $objWMIService.ExecQuery( "SELECT * FROM Win32_Process")
[/autoit] [autoit][/autoit] [autoit]For $objItem in $colItems
Local $Proz = $objItem.Caption
$Proz=$Proz& @CRLF
_ArrayAdd ($arrProz,$Proz)
sleep (100)
Next
Return $arrProz
EndFunc
leider funzt das nicht so wie ich will
lg
TOM