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
use superordinate folders in relative file paths for vensim command scripts?
-
- Super Administrator
- Posts: 4589
- Joined: Wed Mar 05, 2003 3:10 am
Re: use superordinate folders in relative file paths for vensim command scripts?
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: use superordinate folders in relative file paths for vensim command scripts?
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
Here is my example code:
MENU>XLS2VDF|..\another_subfolder_to_parent_folder\SpreadsheetWithData.xls|..\Data.vdf|..\another_subfolder_to_parent_folder\FormFile.frm|sheetname