1 2 3 4 5 6 7 8 | "fichero" > 123-10.txt "fichero" > 123-11.txt Get-ChildItem 123*.txt foreach($elementos in (Get-ChildItem 123-??.txt).name) { $elementos.Split("-")[1].replace(".txt","") } |
1 2 3 4 5 6 7 8 | "fichero" > 123-10.txt "fichero" > 123-11.txt Get-ChildItem 123*.txt foreach($elementos in (Get-ChildItem 123-??.txt).name) { $elementos.Split("-")[1].replace(".txt","") } |