I'm not sure what the problem is -- you can just use relative paths within
the do file, without ever referencing all of the lower levels of the path.
For example you can :
use myfile
or
use dataset1\myfile
or
use ..\myfile
to identify files you want to use (or with any other command referencing a
file). You never need to spell out the whole path.
Michael Blasnik
[email protected]
----- Original Message -----
From: "Dietrich Dr�ner" <[email protected]>
To: <[email protected]>
Sent: Tuesday, December 09, 2003 2:59 PM
Subject: st: truncate folder path in Stata 7?
> Dear Statalisters,
>
> how can I truncate the first levels of the folder path where I want to
load or save datasets in Stata 7 (for Windows)?
>
> I am using Stata on two different computers with a very similar folder
structure. It looks about like: "...\MyFiles\Dissertation\dataanalysis\.."
> but the first three or four path levels are different due to the folder
structure of the operating system.
>
> I remember that in an older version (4 or 5) of Stata there was a simple
command that made Stata search for the appropriate path. But I can't find
anything in the help files or at stata.com.
>
> It's always a dull work to change all do-files that I have saved on the
other computer when I want to use them on the second.
>
> Thank you!
>
> Dietrich.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/