>for resolving your first problem, try this:
>SYS(5)+SYS(2003)+"\"+WTITLE() returns Full path with the .prg name
>WTITLE() returns the caption of the active window, while this isn't maximized.
Does this really work? Wouldn't it simply return the filenames as if they're in current folder?
Cetin