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

Use this forum to post Vensim related questions.
Post Reply
kleemax
Senior Member
Posts: 125
Joined: Tue Jan 26, 2016 3:50 pm
Vensim version: PRO

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

Post 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
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

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

Post 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.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
kleemax
Senior Member
Posts: 125
Joined: Tue Jan 26, 2016 3:50 pm
Vensim version: PRO

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

Post 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
Post Reply