明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1922|回复: 9

LISP调用DOS程序的问题

[复制链接]
发表于 2005-3-2 13:41:00 | 显示全部楼层 |阅读模式
LISP调用DOS程序时如何输入其他数据,比如:copy c:\x.txt a:\
发表于 2005-3-2 14:55:00 | 显示全部楼层
(COMMAND "shell" "copy c:\\x.txt a:\\")
发表于 2005-3-2 18:12:00 | 显示全部楼层
哦?原来这样也可以呀?
 楼主| 发表于 2005-3-7 11:41:00 | 显示全部楼层
谢谢meflying!!
发表于 2005-3-8 23:02:00 | 显示全部楼层
又学到一招,以前从没用过“shell”命令。
 楼主| 发表于 2005-3-18 11:20:00 | 显示全部楼层
不知SHELL 如何在后台隐藏运行?
发表于 2005-3-20 11:21:00 | 显示全部楼层

感觉用DOSLIB里面的函数就不存在后台隐蔽的问题了.

用"DOS_COPY"

dos_copy


Copies a single file or multiple files. The function can be used to copy files from one directory to another, or from one drive to another.

Syntax

(dos_copy source destination)

Parameters

source The source file or files. source can contain wildcard characters ("*" and "?").
destination The destination path or file.

Returns

T if successful. nil on error.

Example

Command: (dos_copy "c:\\program files\\autocad 2002\\drawing1.dwg" "c:\\program files\\autocad 2002\\drawing2.dwg") T
 楼主| 发表于 2005-3-21 08:12:00 | 显示全部楼层
但那得给一个ARX呀,有现成的SHELL更好,而且功能很多!
发表于 2005-3-21 13:53:00 | 显示全部楼层
meflying发表于2005-3-2 14:55:00(COMMAND \"shell\" \"copy c:\\x.txt a:\\\")

能否自动返回CAD?
 楼主| 发表于 2005-3-21 18:57:00 | 显示全部楼层
当然
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-29 14:26 , Processed in 0.172599 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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