I am about to submit to a Journal and they require that replication should be as easy as possible. All my statistical analysis happens in a program.
I don't know how I can specify that the working directory for the program is the current program folder.
string path = @runpath
cd path 'define default directory
is not working. I looked at the documentation and I searched the forums, but I can't find an answer that works.
Edit: Forgot to add, I am working with EViews 8.
Change the working directory in a program
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
Change the working directory in a program
Last edited by 309blank on Thu Jun 01, 2017 5:07 am, edited 1 time in total.
Re: Change the working directory in a program
http://www.eviews.com/download/whitepapers/Paths.pdf
I looked at this, but neither
cd @runpath nor cd @linepath work. I want the program to completely execute just by doubleclicking the .prg file, but it says "Path or file not found : @LINEPATH in "CD @LINEPATH"." And "Path or file not found : @RUNPATH in "CD @RUNPATH"." when I try to run it like that.
I looked at this, but neither
cd @runpath nor cd @linepath work. I want the program to completely execute just by doubleclicking the .prg file, but it says "Path or file not found : @LINEPATH in "CD @LINEPATH"." And "Path or file not found : @RUNPATH in "CD @RUNPATH"." when I try to run it like that.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Change the working directory in a program
Code: Select all
%path = @runpath
cd %path
Follow us on Twitter @IHSEViews
Re: Change the working directory in a program
Thanks. How come I have to save it as a replacement variable first?
Who is online
Users browsing this forum: Google [Bot] and 18 guests