当前位置:编程学习 > VB >>

新手问下,如何用VB写一个删除未知文件夹内的已知文件呢?

Private Sub Command1_Click()
If Command1 = flase Then
MsgBox "找到不指定文件,删除失败!"
Else
Kill "..\bin\hshield\aspinet.log"
Kill "..\bin\hshield\hshield.log"
Kill "..\bin\hshield\supdate.log"
MsgBox "删除HS检测文件成功!"
End If
End Sub


这样自己乱写。。不知道对不对。。
请各位大侠帮帮忙- -谢谢了 --------------------编程问答-------------------- 牛啊,代码写的牛 --------------------编程问答-------------------- If Command1 = flase

这……这是啥,Command1=布尔值也就算了,居然还是flase --------------------编程问答-------------------- Command1 的默认属性是Caption,Caption可以赋值为False...真的牛了
补充:VB ,  基础类
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,