See
Re: List of illegal characters for URL Message #
770474 and
Re: Escape/UnEscape functions Thread Message #
584803. If you're cocerned with spaces only
lcUrl = "file://c:\myfolder\some info.doc"
IF SPACE(1) $ lcUrl
lcUrl = STRTRAN(lcUrl, SPACE(1), "%20")
ENDIF
...
>one question though.
>this feature not working if a folder or file has a space in them. how can i get around it ??
>e.g. file://c:\myfolder\some info.doc
--sb--