[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: RE: Cross-platform mobility
Danielle H. Ferry
> > I am not clear quite how this is biting you,
> > but Stata provides a dirsep which depends on
> > your platform.
> > In Stata 7, this is accessed by `: dirsep'
> > and in Stata 8 by `c(dirsep)'.
> I don't understand what you are referring to. The problem I
> have is that
> suppose I write a do-file that has one line that looks like this:
> use :C:stata:auto, clear
> This will work fine when I run on my Mac. If I try to run
> on a PC, however,
> I will have to change the line to:
> use C:\stata\auto, clear
> Each time I go back and forth between the Mac & PC, I will
> have to change
> the way the pathname is specified.
In this particular case,
. sysuse auto
More generally, type this
. di "`c(dirsep)'"
under both platforms to see what it is.
Alan Riley has very good suggestions,
which make coding -dirsep- irrelevant.
* For searches and help try: