注册 登录
明经CAD社区 返回首页

xinrstar的个人空间 http://www.mjtd.com/?266478 [收藏] [复制] [分享] [RSS]

日志

startapp函数与wscript.shell exec方法

热度 3已有 1291 次阅读2018-9-30 10:46 |系统分类:开发

startapp函数与wscript.shell exec方法都可以用来打开windows应用程序。
(startapp "notepad.exe" "d:\\test.txt")
(vlax-invoke-method  (vlax-get-or-create-object "wscript.shell")  "exec"  "notepad.exe d:\\test.txt")
上面的代码都是用记事本新建或打开文件。
编译成VLX时如果勾选了独立名称空间,也都能够编译成功。
运行编译后的程序时,
startapp函数会出错(no function definition: startapp参数类型错误: stringp nil),
wscript.shell exec方法则不会。

路过

雷人
1

握手
1

鲜花

鸡蛋

刚表态过的朋友 (2 人)

全部作者的其他最新日志

发表评论 评论 (1 个评论)

回复 dragoon33333 2018-12-20 17:58
(vl-arx-import 'STARTAPP)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

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

GMT+8, 2024-4-19 11:31 , Processed in 0.199587 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部