[Pas2js] ExtractFileName function
Michael Van Canneyt
michael at freepascal.org
Wed Jul 31 23:08:26 CEST 2019
See my other mail.
Michael.
On Wed, 31 Jul 2019, warleyalex via Pas2js wrote:
> Windows uses the backslash (\) for the file system delimiter. For everything
> else the forward slash is used (/).
>
> If I define the path using forward slash (/).
>
> fullFileName : String = 'C:/Program
> Files/Borland\Delphi7/Projects/Unit1.dcu';
>
> outputs this:
>
> Drive = C:
> Dir = C:/Program Files/Borland\Delphi7/Projects
> Path = C:/Program Files/Borland\Delphi7/Projects/
> Name = Unit1.dcu
> Ext = .dcu
>
> Unit1.dcu
> Unit1
>
>
>
> --
> Sent from: http://pas2js.38893.n8.nabble.com/
> _______________________________________________
> Pas2js maillist - Pas2js at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js
More information about the Pas2js
mailing list