Vensim error: unable to read commands from .cmd
Posted: Tue Aug 19, 2025 10:28 am
Hi,
I'm using Vensim DSS 10.3.2. I'm trying to run a command script through a .cmd file and either a .bat file or a VBA script to launch Vensim. However, when Vensim launches, this error message appears:
When I open the command file directly in the Vensim interface via 'File > Open Model', the simulation runs without any issues.
I don't understand why this error message appears when I try to launch the command file outside of the Vensim interface.
Here is my commands lines:
I'm using Vensim DSS 10.3.2. I'm trying to run a command script through a .cmd file and either a .bat file or a VBA script to launch Vensim. However, when Vensim launches, this error message appears:
When I open the command file directly in the Vensim interface via 'File > Open Model', the simulation runs without any issues.
I don't understand why this error message appears when I try to launch the command file outside of the Vensim interface.
Here is my commands lines:
Code: Select all
SPECIAL>NOINTERACTION
SPECIAL>LOADMODEL|model_test.mdl
SPECIAL>CLEARRUNS
MENU>TAB2VDF|IN_test.tab|||
SPECIAL>CLEARRUNS
SIMULATE>DATA|IN_test.vdfx
SIMULATE>RUNNAME|Scen_test
SIMULATE>SETVAL|INITIAL TIME = 2000
SIMULATE>SETVAL|FINAL TIME = 2050
MENU>RUN|o
SPECIAL>CLEARRUNS
MENU>EXIT