Remove Items from list


/ Published in: Windows PowerShell
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $todelete = Get-Content .\remove-files.txt
  2. Get-ChildItem -recurse | Where-Object {$todelete -contains[io.path]::GetFileName($_)} | Remove-Item

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.