Delete set of files using find command
- by Dave Jarvis
Background
Delete a set of files, scattered across different directories.
Problem
The following code does not work (the unescaped | causes issues);
for %i in (dir /s/b | find "lock") do echo del %i
Question
Without writing a batch file, how would you delete all files named "lock" (i.e., found using the find command) within the current…