Код:
Func RetFileName($var)
	$var2 = StringLen($var)
	If StringLen($var) > 0 Then Return StringRight($var, $var2 - StringInStr($var, "\", 0, -1))
EndFunc   ;==>RetFileName