(defun appname (li nam / i len nlist nli n0);;li = -3扩展属性 NAM = 注册扩展名
(setq i 1
len (length li))
(while (< i len)
(setq nlist (nth i li))
(setq n0(nth 0 nlist))
(if (= n0 nam);;;;;;;设定扩展名
(progn
(setq nli (nth i li)
i len)
));if progn
(setq i (1+ i))
);while
nli
)