(defun lt:path-addBackSlash (path) (setq path (vl-string-translate "/" "\\" path)) (if (wcmatch path "*\\") path (strcat path "\\")) ) ;;____________________________________________________________________________________________________ ;; ▓ (lt:load-allLispAtDir dir) ;; [功能] 加载指定目录中所有 LISP 程序程序 ;; [参数] dir---目录 ;; [测试] (lt:load-allLispAtDir "c:\\lisp") (defun lt:load-allLispAtDir (dir) (setq dir (lt:path-addBackSlash dir)) (foreach x '("*.lsp" "*.fas" "*.vlx") (foreach y (vl-directory-files dir x 1) (load (strcat dir y))) ) ) |