[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Getting the path of a file



Suppose I have the file
\xxx\yyy\zzz\file.ext
open and my default directory is something other than \xxx\yyy\zzz.
I'd like to put the path to the file, namely
\xxx\yyy\zzz
in a variable. Is there an easy way to get that path? I can't see a VA
that does it. (I also can't find anything in the archives on this
topic.) I have written a short XPL script that searches recursively for
"\" in VA$FP until none is left. Am I missing an easier way?

--
Martin J. Osborne
Department of Economics
150 St. George Street
University of Toronto
Toronto
M5S 3G7
Canada
http://www.economics.utoronto.ca

martin.osborne@xxxxxxxx
http://www.economics.utoronto.ca/osborne
+1 416-978-5094