I am writing with Delphi 2009 a little app to edit HTML files. With
HypRef := '../../photos/myjpg.jpg'
If FileExists(ExpandFileName(HypRef)) then ...
I can find out, whether the file exists or not. Is there a function to find out the correct relative path, if FileExists gives a negative answer?