PowerShell PowerShell "hola" | out-file 2020-11-26.txt "hola" | out-file 2020-11-25.txt foreach($nombre in Get-ChildItem) { if($nombre.Name.Split("-")[2].replace(".txt","") % 2 -eq 1) { Remove-Item $nombre -WhatIf } } 12345678910 "hola" | out-file 2020-11-26.txt"hola" | out-file 2020-11-25.txt foreach($nombre in Get-ChildItem){ if($nombre.Name.Split("-")[2].replace(".txt","") % 2 -eq 1) { Remove-Item $nombre -WhatIf }}