# .mod file does not run

**URL:** <https://forum.dynare.org/t/mod-file-does-not-run/27078>\
**Category:** Installation and Setup\
**Created:** [22 January 2025 19:56 UTC](https://forum.dynare.org/t/mod-file-does-not-run/27078 "2025-01-22T19:56:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marie1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@Marie1](https://forum.dynare.org/u/Marie1)\
**Post date:** [22 January 2025 19:56 UTC](https://forum.dynare.org/t/mod-file-does-not-run/27078/1 "2025-01-22T19:56:04Z")

</div>

Hey,

something with my Dynare installation did not work. I can run this type of code and see the results of the example 1 simulations:

addpath(‘C:\dynare\6.2\matlab’)  
savepath  
cd(‘C:\dynare\6.2\examples’)  
dynare example1

But as soon as I try to save a .m as a .mod , Matlab does not recognise the file type anymore and then you cannot run it anymore at all because the run button and other features cannot be chosen anymore. This code for example is not working:

cd(‘C:\dynare\work’)  
dynare NKO.mod

Also if I open example 1 on my own in matlab or any other .mod file, I cannot run it. It seems like no .mod file is currently working on this computer. I also already tried to deinstall and reinstall and all other kinds of tricks.

Thanks so much for your help!

Best,  
Marie

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [22 January 2025 19:58 UTC](https://forum.dynare.org/t/mod-file-does-not-run/27078/2 "2025-01-22T19:58:36Z")

</div>

You are not supposed to save Matlab scripts as mod-files. Only the Dynare `mod` file like `example1.mod` is supposed to have that type.
