>>Hi all,
>>
>>I have cdir = "c:\Myapp\mydata\Bo\" and i want "bo".
>>
>>How can i do it ?
>>
>>thank in advance
>>
>>Bernhart
>
>
>cdir = juststem(JUSTpath("c:\Myapp\mydata\Bo\"))
>
Greg,
Whilst your solution _is_ correct in this case, you do realize that you make two dangerous assumptions
(1) You assume the arg ends with a backslash
(2) You assume that the foldername does not have an extension ( eg config.mso )
Gregory