The system I'm working on looks like this:

```
D:\TargetFolder\Subfolder1 
D:\TargetFolder\Subfolder2\Subfolder3

```

There is a file called **"Settings.txt"** that could exist in each of these folders. what I want is the following:

* **If** the file was found more than once in the targeted folder and all of its subfolders **then** delete all of them.
* **If** the file was found just once in the targeted folder and all of its subfolders **then** continue on with the script.
* **If** the file doesn't exist **then** continue on with the script.

The final script could possibly be something like this:

```
IF exist "D:\TargetFolder\*Settings.txt" (goto delete) else goto continue
:delete
del *Settings.txt /f /q
:continue
exit

```

I hope I explained my question correctly.
Thanks in advance.