well, actually it gives me unexpected error with every command that I call after this function:
code:
namethis('C:\test.txt')

function namethis($file)
dim $shell,$filename,$folder
$shell=createobject('shell.application')
if exist($file)
$folder=split($file,'\')
$filename=$folder[ubound($folder)]
$folder[ubound($folder)]=''
$folder=join($folder,'\')
else
exit 2
endif
$folder=$shell.namespace($folder)
$folder.parsename($filename).name
endfunction

get $

all it does is return the name of the file you input to it.
first thought that there was a bug with kix but then, that can't be, can it?

[ 14. May 2003, 14:06: Message edited by: Lonkero ]
_________________________
!

download KiXnet