 - (defun GetSupportPath (str / i j lst)
- (setq i 0)
- (while (setq i (vl-string-position 58 str i))
- (setq j (vl-string-position 58 str (1+ i)))
- (if j
- (setq lst (cons (substr str i (- j i)) lst))
- (setq lst (cons (substr str i) lst))
- )
- (setq i (1+ i))
- )
- (reverse lst)
- )
用这个获取到支持路径到列表,然后就好办了,用wcmatch 就可以得到你想要的。 |