明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: mandala

两个小问题:

  [复制链接]
发表于 2011-9-16 11:29:33 | 显示全部楼层
DosLib14
===>
dos_copy
Copies a file. The function can be used to copy a file from one directory to another, and from one drive to another.
Syntax
(dos_copy srcfilename destfilename)
Arguments
srcfilename        Source file name. Must be the path name of an existing file.
destfilename        Destination file name. If this file exists, it will be overwritten.
Returns
A qualified path to destfilename.  
nil on error.
发表于 2011-9-16 19:10:08 | 显示全部楼层
推荐 Andyhon 兄的建议,SHELL本身无法判断文件是否复制成功,只能从目标文件判断
 楼主| 发表于 2011-9-17 16:03:40 | 显示全部楼层
本帖最后由 mandala 于 2011-9-17 16:05 编辑
caoyin 发表于 2011-9-16 19:10
推荐 Andyhon 兄的建议,SHELL本身无法判断文件是否复制成功,只能从目标文件判断


还有个办法。用shell 复制源文件到任意目录下,另取一个文件名为aaa.dwg,再用move命令将aaa.dwg移动至目标路径。然后findfile aaa.dwg,如果aaa.dwg存在,则move成功。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-9 19:55 , Processed in 0.173409 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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