Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

windows shell delete files based on name

Get-Childitem -path c:path -Filter *.jpg -Recurse | where-object {$_.Name -ilike "*_bad*"} | Remove-Item -Force -WhatIf
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #windows #shell #delete #files #based
ADD COMMENT
Topic
Name
6+6 =