I'm trying to run a FOR loop in a batch file, but exclude a certain file extension from the action (as these are temporary files which will be renamed automatically by other program once they have downloaded).

My folder (which I have defined as %%landing\_folder%% earlier in my batch file) could contain 6 files:

a.mov

b.wmv

c.avi

d.temporary

e.jpg

f.temporary

I want to use the command

```
for /f %%i IN ('dir %landing_folder% /b') do move %landing_folder%\%%i %ingest_folder% 

```

And have it move only the .mov, .wmv, .avi and .jpg to my %%ingest\_folder%% but leave the .temporary files.

Hope I've made myself clear with what I'm trying to achieve here!