Thanx adam 'n' fuzzyman! got that 'isdir'. But how the other thing? Can't find anything suitable. I'll be happy on getting atleast something like the file command in Unix