Put all generated files automatically into the correct folder?

I just installed dynare, and tested it with the first model, called “example1.mod”, which I took from dynare’s folder and put in my own folder called “\models”. When I execute this model in Matlab using “dynare example1.mod”, about 9 other files and a folder called “example1” are created in the same folder “\models”.

This really clutters my original folder. Is there a way to automatically put all these files in the “example1” folder, so that I can have a folder “\models” with only “.mod” files and nothing else?

No, that is not possible. Dynare always puts some files in the folder where the mod-file is located.