Page 1 of 1
Current Folder (EV6)
Posted: Mon May 17, 2010 10:19 am
by fmgoto
Is there a function that outputs the folder where the code is saved?
Something like:
%current_folder = @current_folder
cd %current_folder
Thanks, Fabio
Re: Current Folder (EV6)
Posted: Mon May 17, 2010 11:36 am
by EViews Gareth
Define what you mean by "where the code is saved"
Re: Current Folder (EV6)
Posted: Mon May 17, 2010 12:57 pm
by fmgoto
Suppose I run a code that is saved in "C:/Eviews/code.prg". How do I retrieve %currend_folder = "C:/Eviews/code.prg" without typing it? Thanks!
Re: Current Folder (EV6)
Posted: Mon May 17, 2010 1:17 pm
by EViews Gareth
It is a little more complicated than that in general, but in your case, you'll probably find that @runpath works for you:
If you move up to EViews 7, it is a lot more complicated, and you should consult our Whitepaper on paths:
http://eviews.com/download/download.html#docs
Re: Current Folder (EV6)
Posted: Mon May 17, 2010 1:53 pm
by fmgoto
Great! Thank You!
I am afraid I could not find it in the Reference Guide, though.