delphi remove . and .. from path

Posted by user80003 on Stack Overflow See other posts from Stack Overflow or by user80003
Published on 2010-04-14T09:55:48Z Indexed on 2010/04/14 10:23 UTC
Read the original article Hit count: 115

Filed under:
|
|

Hello everyone.

How can I remove the . and .. from a path in Delphi (not using .NET). I need a function, so I can pass it something like 'c:\program files..\program files...', and I want the function to return to me 'c:\'.

Can Delphi do that on its own? Or do I need to do it myself?

© Stack Overflow or respective owner

Related posts about delphi-7

Related posts about string