URLSubs
function DosToHTML(FileName: String): string;
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.
After the call,
S := DosToHTML('c:\Big\Images\Glass.bmp');
S will contain 'c|/Big/Images/Glass.bmp'.