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

Grabbing the path



OKAnnie is right; there's no straightforward way to get a current
file's subdirectory from a VA$ value. If you use the menus, or
if you don't but you're willing to put modify the DLG file so
that it contains only the global subroutines, the procedure is
relatively painless:
{SX40,{va$fp}}JM (GrabPath)
The path is returned in Save/Get 40, and your XPL routine can
list it, use it in a cd command, etc.

Alternatively, you could, I suppose, copy the code from GrabPath
into your own routine(s).

BTW: Do you know that you can type cd without an argument and
toggle to the subdirectory you just switched from?

Cheers,
Tim Baehr
TBaehr@xxxxxxxx