# Opening a Dynare file

**URL:** <https://forum.dynare.org/t/opening-a-dynare-file/4389>\
**Category:** Dynare help (legacy posts)\
**Created:** [5 January 2015 15:34 UTC](https://forum.dynare.org/t/opening-a-dynare-file/4389 "2015-01-05T15:34:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mram](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@mram](https://forum.dynare.org/u/mram)\
**Post date:** [5 January 2015 15:34 UTC](https://forum.dynare.org/t/opening-a-dynare-file/4389/1 "2015-01-05T15:34:20Z")

</div>

Hi all,

I am getting to use Dynare these days and am doing baby steps. I have a very basic question as such.  
I looked up online yet did not find a solution yet.

What I did:

- I installed Dynare 4.4.3
- I have Matlab running fine
- I added the path \dynare\4.4.3\matlab to the Matlab directory

What I am miserably trying to do:

- Opening and running the simple examples in the dynare\4.4.3\examples subfolder.

What it does:

- I can open the file by writing the Matlab command “edit example1.mod” or any other example that comes when installing Dynare
- I can’t run it by writing “dynare example1.mod” or any other example. The error message I get is:

================================  
Configuring Dynare …  
[mex] Generalized QZ.  
[mex] Sylvester equation solution.  
[mex] Kronecker products.  
[mex] Sparse kronecker products.  
[mex] Local state space iteration (second order).  
[mex] Bytecode evaluation.  
[mex] k-order perturbation solver.  
[mex] k-order solution simulation.  
[mex] Quasi Monte-Carlo sequence (Sobol).  
[mex] Markov Switching SBVAR.

Starting Dynare (version 4.4.3).  
Starting preprocessing of the model file …  
ERROR: Could not open file: example1.mod

# Error using dynare (line 174) DYNARE: preprocessing failed

I can tell I am doing a silly mistake somewhere, yet I cannot figure it out.  
Would anyone have any idea on this? Any help would be much appreciated.

Many thanks!

---

<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:** [5 January 2015 22:38 UTC](https://forum.dynare.org/t/opening-a-dynare-file/4389/2 "2015-01-05T22:38:29Z")

</div>

You need to set Matlab’s Current Folder to the folder where the mod-file is located.

---

<div class="post-metadata">

**Author:** ![mram](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@mram](https://forum.dynare.org/u/mram)\
**Post date:** [6 January 2015 11:33 UTC](https://forum.dynare.org/t/opening-a-dynare-file/4389/3 "2015-01-06T11:33:49Z")

</div>

Many thanks for your swift reply.

It all works, thanks again for helping new starters.

All the best for 2015
