标题:求助:为何rmdir删除空文件夹会出错?
取消只看楼主
czb27111111
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2015-2-10
结帖率:100%
 问题点数:0 回复次数:1 
求助:为何rmdir删除空文件夹会出错?
if dir(thepath,d......)<>"" then
kill thepath & "*"
rmdir thepath
end if
在rmdir那行提示75号错误
搜索更多相关主题的帖子: 文件夹 
2015-04-02 21:23
czb27111111
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2015-2-10
得分:0 
回复 2楼 HVB6
解决了

    If Dir(ThePath & "*") <> "" Then
        Kill ThePath & "*"
    End If
    If Dir(ThePath & "*") = "" Then
        RmDir ThePath
    End If

应该是删除的间隔太短了吧

[ 本帖最后由 czb27111111 于 2015-4-3 17:31 编辑 ]
2015-04-03 17:29



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-443447-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.500188 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved