Is there a function that outputs the folder where the code is saved?
Something like:
%current_folder = @current_folder
cd %current_folder
Thanks, Fabio
Current Folder (EV6)
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Current Folder (EV6)
Define what you mean by "where the code is saved"
Re: Current Folder (EV6)
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!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Current Folder (EV6)
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
Code: Select all
%currpath = @runpath
http://eviews.com/download/download.html#docs
Re: Current Folder (EV6)
Great! Thank You!
I am afraid I could not find it in the Reference Guide, though.
I am afraid I could not find it in the Reference Guide, though.
Who is online
Users browsing this forum: No registered users and 2 guests
