Page 1 of 1

use superordinate folders in relative file paths for vensim command scripts?

Posted: Wed Mar 31, 2021 10:53 am
by kleemax
In a command script the relative file paths can use sub-folders by using a forward slash "/"
This works well.
Is it also possible to go a level higher to a superordinate folder? Let's say I have a folder wich contain my command scripts that is a subfolder to a folder which contains an excel file and I want to import that excel file.
Is the only way to temporarily copy the command script to the superordinate folder containing the excel file or can I somehow indicate that in the path?
I have tried ../ or ..\ but that does not seem to work.

Kind regards,
Max Kleemann

Re: use superordinate folders in relative file paths for vensim command scripts?

Posted: Wed Mar 31, 2021 11:45 am
by Administrator
It will not work without modification to Vensim. We'd need to change Vensim to recursively replace any occurrences of ".." with the parent folder names.

Re: use superordinate folders in relative file paths for vensim command scripts?

Posted: Wed Mar 31, 2021 1:18 pm
by kleemax
I have to correct myself, I actually got it to work with the help of a colleague!
Here is my example code:
MENU>XLS2VDF|..\another_subfolder_to_parent_folder\SpreadsheetWithData.xls|..\Data.vdf|..\another_subfolder_to_parent_folder\FormFile.frm|sheetname