明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1325|回复: 3

各位大侠,如何用VLISP删除某一文件夹里所有内容

[复制链接]
发表于 2005-5-22 15:27 | 显示全部楼层 |阅读模式
各位大侠,如何用VLISP删除某一文件夹里所有内容


然后复制另一文件夹中所有内容到该文件夹?
"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2005-5-22 15:46 | 显示全部楼层
使用fso可以实现。


(setq fso (vlax-create-object "Scripting.FileSystemObject"))


(vlax-invoke-method fso 'deletefolder "c:\\test")


(vlax-invoke-method fso 'copyfolder sourcepath targetpath)


更多的信息可用google搜一下filesystemobject
 楼主| 发表于 2005-5-22 15:57 | 显示全部楼层
我这用vlax函数有些问题


能否用startapp之类的?


我先试试
 楼主| 发表于 2005-5-22 16:01 | 显示全部楼层

Starts a Windows application

(startapp appcmd [file])

Arguments

appcmd

A string that specifies the application to execute. If appcmd does not include a full path name, startapp searches the directories in the PATH environment variable for the application.

file

A string that specifies the file name to be opened.

Return Values

An integer greater than 0, if successful; otherwise nil. appcmd 那里找到他的说明?

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

本版积分规则

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

GMT+8, 2024-5-11 18:26 , Processed in 0.145554 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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