Wednesday, October 7, 2020

How to Search and Delete with Command Prompt

Open Command Prompt as Admin, run (to delete anything that starts with filename):

for /f "delims=" %i in ('dir /s /b /ad filename*') do rd /s/q "%i"

No comments: