I have a directory with several files that do not have a file extension. This directory also has several subdirectories that have the same thing.

I am using the `forfiles` command to add a file extension. However, when I use this command specifically:

```
forfiles /s /c "cmd /c rename @file @fname.ext"

```

It adds the extension to the folders alongside the files.

Is there any way to exclude the subdirectories themselves, only adding the extension to the files in them?