|So my issue is Variable assignment.|
My goal is to find for a set of files, report any instance of said file(s) occurrence and then delete them.
If at all possible I'd like help with the variable assignment and not the entire program written.
My solution thus far is this
set fpath=Dir C:\ /p /s | find /i "FileName"
if EXIST %fpath% echo DELETING FILE & DEL %fpath%
This doesn't work. Any pointers would be great