I have a report that deposits files from a network (NTFS) folder into another specific network (NTFS) folder. Some of the files contain a random string of numbers in the file name (example filename: xxsample_export 2131.xml
). I need to find and delete all files in the folder that contain numbers in the filename. I've tried using Findstr but no luck so far. :(
Edit: I've tried this, I'm incredibly new at findstr. Thanks for your assistance.
for /F %%F in (dir /A -D "%Path%\*.xml" | findstr /R "[0-9]*.xml" do del %%F"