作者Egriawei (Sola)
看板Cad_Cae
标题Re: [问题] AutoLisp可以呼叫外部程式吗
时间Thu May 10 23:04:30 2007
※ 引述《cynthmis (pika)》之铭言:
: 如标题所示
: 在lisp里有办法呼叫外部程式吗?
: 例如我在lisp执行到一个段落後
: 想要开启一个档案、或是执行exe、bat等等的执行档..谢谢
应该可以,用start或startapp指令
读exe档等等我不知道是不是也可以(但至少要让系统找的到档案位置)
下面列举一些
(command "start" "excel") ;开excel
(command "start" "notepad") ;开notepad
(command "start" "powerpnt") ;开powerpoint
(startapp "cmd") ;dos视窗显示 windows版本与cad工作路径
(startapp "explorer") ;出现档案总管,我的文件之类的资料夹
(startapp "control") ;控制台
(startapp "winmine") ;踩地雷
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.230.30.199
※ 编辑: Egriawei 来自: 61.230.30.199 (05/10 23:12)