Dear Sir,
Our filesystem have the "&" character into filenames and folder names. When I try to open a model calling vensim_command from my C++ application and the model name or the folder name has the "&" character, vensim does not find the model to open. But when I open the model via model reader application, navigating between folders, there is no problem to open it.
My calling function is:
vensim_command("SPECIAL>LOADMODEL|c:\vensim\Projects\prueba&veras\empty.vpm")
Thank you
Jose Fornes
& character into filename and pathname
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
The & is used to separate Vensim commands. So Vensim is getting two command
SPECIAL>LOADMODEL|c:\vensim\Projects\prueba
and
veras\\empty.vpm
the second one does not make any sense but it fails on the first anyway so it never gets there.
There is not an escape sequence for & - I will take a look to see if one can be added.
SPECIAL>LOADMODEL|c:\vensim\Projects\prueba
and
veras\\empty.vpm
the second one does not make any sense but it fails on the first anyway so it never gets there.
There is not an escape sequence for & - I will take a look to see if one can be added.
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm