明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1694|回复: 3

findfile能不能不带后缀

[复制链接]
发表于 2007-2-8 23:42 | 显示全部楼层 |阅读模式
因为我的程序编译前是lsp文件,但是编译后是vlx文件,这个时候findfile就找不到这个文件了
"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2007-2-9 08:27 | 显示全部楼层
你可以先findfile vlx文件,如果为空,再findfile lsp文件。这样可以了吧。
 楼主| 发表于 2007-2-10 00:13 | 显示全部楼层
呵呵,看来只能是查找可能编译的所有文件了,比如vlx,lsp,fas一系列的
发表于 2007-2-12 21:05 | 显示全部楼层

用以下方法试试

(defun yourfun (/ p_file)

.

.

.


  (if (not (or (findfile (strcat p_file ".vlx"))

               (findfile (strcat p_file ".lsp"))

               (findfile (strcat p_file ".fas"))

               (findfile (strcat p_file ".exp"))

               (findfile (strcat p_file ".exe"))

               (findfile (strcat p_file ".arx"))

               (findfile p_file)
            ))

      (exit)

     )

.

.

.
)

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-20 16:13 , Processed in 0.255733 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表