Article # 299, added by Geoworks, historical record
| first | previous | index | next | last |

Comparing file paths for equality.



Q. Given two full directory path strings (including the drive letters),
   how can I check whether the two refer to different files ?

   Doing a string compare of the paths will not cover all cases, since
   it is possible to have two different drive letters mapped to the
   same drive.

A. Call FileGetPathExtAttributes(FEA_MULTIPLE, 2, [FEA_FILE_ID, FEA_DISK])
   for each one (from assembly one can call IACPGetDocumentID) and compare
   the attributes of the files.