- (defun c:lsptofas ( / f fname ml n str)
- (command "vlisp")
- (vl-load-com)
-
- (setq fname (getfiled "lisp数据文件" ".lsp" "lsp" 16))
- (if (not fname)
- (exit)
- )
- (if (not (setq f (vl-filename-directory fname)))
- (exit)
- )
- (setq ml (vl-directory-files f "*.lsp" 1))
- (setq n (length ml))
- (princ "\n 转换中...请稍等! \n")
- (repeat n
- (setq str (car ml)
- str (strcat f "\" str)
- )
- (vlisp-compile 'st str)
- (vl-file-delete str)
- (setq ml (cdr ml))
- )
- (princ (strcat "转换数:" (itoa n)))
- (princ)
- )
不用打开vle就可以执行啦。 |