Retrieve local directory

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

Silvana
Posts: 13
Joined: Fri Jun 10, 2011 2:57 pm

Retrieve local directory

Postby Silvana » Thu Apr 26, 2012 8:00 am

I'm using Eviews 6
Is there anyway to retrieve the local directory? The default directory is known. I know I can change to another directory using "cd" like cd "a:\sample data", but I'm not always sure of the drive letter on a server path. I would like to be able to "read" file sample data (for example) in my program file from the current folder? Is that possible? Thanks Silvana

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13585
Joined: Tue Sep 16, 2008 5:38 pm

Retrieve local directory

Postby EViews Gareth » Thu Apr 26, 2012 8:52 am

@runpath returns the path containing the program file you are running. I believe it was available in EV6, but am not certain (and don't have a copy handy to check).

Silvana
Posts: 13
Joined: Fri Jun 10, 2011 2:57 pm

Re: Retrieve local directory

Postby Silvana » Thu Apr 26, 2012 12:16 pm

Oh yes that worked. Thanks again.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests