<p>How can I iterate over each file in a directory using a <code>for</code> loop?</p>

<p>And how could I tell if a certain entry is a directory or if it's just a file?</p>

```
```
for %1 in (*.*) do echo %1
```
```
Try "HELP FOR" in cmd for a full guide
This is the guide for XP commands.
http://www.ss64.com/nt/