Conversion between absolute and relative paths in Delphi

后端 未结 9 516
不思量自难忘°
不思量自难忘° 2020-11-30 01:18

Are there standard functions to perform absolute <--> relative path conversion in Delphi?

For example:

  • \'Base\' path is \'C:\\Projects\\Projec
9条回答
  •  悲哀的现实
    2020-11-30 01:56

    To convert to the absolute you have :

    ExpandFileName

    To have the relative path you have :

    ExtractRelativePath

提交回复
热议问题