>When I open the project as a DBF I'm looking at the field 'name' but sometimes it has '.../dir1/test.prg' instead of the drive and fullpath. How can I get the drive and full path?
Try
USE myproj
* Project home directory from the first record
lcHomeDir = CHRTRAN(homedir, CHR(0), "")
* Move to some other project item
lcName = CHRTRAN(name, CHR(0), "")
? FULLPATH(lcName, lcHomeDir)