Zitat von nemix
Ankündigung
Einklappen
Keine Ankündigung bisher.
Powershell Hilfe
Einklappen
X
-
Gast -
Gast
$hash = @()Zitat von MeeepBayer zahlt :p kann man das noch in eine txt-datei ausgeben lassen? Outfile erstellt mir zwar die Datei aber sie enthält keine daten
$obj=get-childitem -Path $path | foreach {$_.name}
foreach ($objs in $obj) {
$fields = $objs.Split("_")
$tmp=$fields[1]
$tmp2=$tmp.split(".")
$currentnmbr=$tmp2[0]
$hash += $currentnmbr
}
$result = $hash |% {$i = 0001}{while ($i -lt $_){$i;$i++};$i++} |Out-File "$env:USERPROFILE\Desktop\output.txt"
Kommentar
Kommentar