PowerShell PowerShell "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","") } 12345678 "fichero" > 123-10.txt"fichero" > 123-11.txt Get-ChildItem 123*.txtforeach($elementos in (Get-ChildItem 123-??.txt).name){ $elementos.Split("-")[1].replace(".txt","")}