Search found 1 match

by jaykappy
23 Aug 2016 12:47
Forum: DOS Batch Forum
Topic: batch delete specific file type in subfolders
Replies: 4
Views: 4278

batch delete specific file type in subfolders

I am trying to run a command that will search a bunc h of folders and DELETE ALL files EXCEPT a specific file. I am using this right now. for %i in (*) do if not %i == .msg del %i Questions: 1. This does not work on subfolders. How do I modify it to do so? 2. How do I specify more than one type of f...