DosToHTML Function


Unit

URLSubs

Syntax

function DosToHTML(FileName: String): string;

Description

The DosToHTML function converts a Dos style filename to one in URL style. If the filename is in URL format to begin with, no change takes place.

Note: The file:/// protocol is not added by the DosToHTML function.

Example

After the call,

S := DosToHTML('c:\Big\Images\Glass.bmp');

S will contain 'c|/Big/Images/Glass.bmp'.

See Also:

HTMLToDos Function