Advertisement
Guest User

Untitled

a guest
Aug 7th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $targetfolder = "C:\foo\bar\nattebums"
  2. $files = gc C:\foo\bar\list.txt
  3. foreach ($file in $files)
  4. {write-host "Deleting $file" -forgroundcolor "Red"; Remove-Item $file | out-null}
  5. write-host "D O N E" -foregroundcolor "Red"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement