kind of Right()

code:
$path="c:\df\adsfvad\vwed"

$l=len($path)
$index=$l
$folder=""

while $index>0 and $folder=""
if substr($path,$index,1)="\"
$folder=substr($path,$index+1,$l-$index)
endif
$index=$index-1
loop
? $folder



[ 14. November 2002, 21:46: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask