(vl-file-copy)如何使用“通配符”
<!--Element not supported - Type: 8 Name: #comment--><!--Element not supported - Type: 8 Name: #comment--> 假定<br/>(setq bb "d:\\") D盘下有4个txt文件,分别为1.TXT 2.TXT 3.TXT 4.TXT<br/><br/>如何用(vl-file-copy)将4个文件复制到其他路径<br/><br/>(VL-FILE-COPY (STRCAT BB "*.txt") "d:\\CAD二次开发\\*.TXT") <p>研究了一下还是有收获的</p><p>(SETQ LIST (VL-DIRECTORY-FILES BB "*.txt")) </p><p>(foreach n list (VL-FILE-COPY (STRCAT BB n) (STRCAT "D:\\CAD二次开发\\" n)))</p><p> </p> foreach 也算是lisp精髓函数之一了,可是还没有敢用过
页:
[1]