>The question seems simple, maybe I am too tired and stressed to solve it my self
>
>lcHtml = SYS(5) + curdir() + "emails\messages\" + ALLTRIM(emails.msgtx_path)
>= MESSAGEBOX(lcHtml )
>
>Displays the whole path but I only need the file name with is in: ALLTRIM(emails.msgtx_path)
>
>
>I will use it in the ie automation code below
>
>lcHtml = SYS(5) + curdir() + "emails\messages\" + ALLTRIM(emails.msgtx_path)
>lnLoadTimeout = 3 && seconds
>*WITH Thisform.oWeb.OBJECT
>WITH Thisform.olecontrol1.OBJECT
>............... etc....
>
Then use only ALLTRIM(emails.msgtx_path) :)
Or do you mean justfname(), juststem() ?
Cetin