解决方案 »
- 下面的代码,是我使用VS FlexGridPro 8.0的一段完整代码,问题是:数据行只显示到第101行,后面的行应该是有数据的,但实际是空白的,为什么?
- access同步sql2000??
- 怎样使label控件实时更新
- wingchi(一颗红心,两手准备,标准菜鸟来了)工作怎么样了,还顺心吗?
- 那位大侠能指点一小女子--------用ADO怎么来判断一个库里是否存在一个表和字段,还有提取一个库的表和字段
- mshflexgrid 查询记录慢
- 如何通过编程将一个打开的文件夹窗口关闭
- 求各位大哥提供一些com编程的资料或示例
- 我想参加微软的mscd的考试
- dll的调用问题!
- vb打开html文件
- 为什么非要加了断点然后逐语句的运行才起作用???
Option Explicit
Private gstrSEP_DIR As StringSub FPDeleteTree(inPath As String)'定义临时变量
Dim tmpPath As String, curPath As String
Dim tmpFileName As String'保存指定路径
curPath = inPath: AddDirSep curPath'删除所有文件,不论文件属性是否为“隐藏”,“只读”还是“系统”。
tmpFileName = Dir(curPath, vbNormal + vbHidden + vbSystem)Do While Not tmpFileName = ""SetAttr curPath & tmpFileName, vbNormalKill curPath & tmpFileNametmpFileName = DirLoop'通过循环删除子目录及其内容
tmpPath = Dir(curPath, vbDirectory)Do While tmpPath = "." Or tmpPath = ".."tmpPath = DirLoopDo While Not tmpPath = ""curPath = curPath & tmpPathAddDirSep curPathtmpFileName = Dir(curPath, vbNormal + vbHidden + vbSystem)Do While Not tmpFileName = ""SetAttr curPath & tmpFileName, vbNormalKill curPath & tmpFileNametmpFileName = DirLooptmpPath = Dir(curPath, vbDirectory)Do While tmpPath = "." Or tmpPath = ".."tmpPath = DirLoopIf tmpPath = "" ThenRmDir curPathcurPath = inPathAddDirSep curPathtmpPath = Dir(curPath, vbDirectory)Do While tmpPath = "." Or tmpPath = ".."tmpPath = DirLoopEnd IfLoopAddDirSep inPathRmDir inPathEnd Sub'******************************************************************************' 子程序: AddDirSep'******************************************************************************Sub AddDirSep(strPathName As String)If Right$(RTrim$(strPathName), Len(gstrSEP_DIR)) <> gstrSEP_DIR ThenstrPathName = RTrim$(strPathName) & gstrSEP_DIREnd IfEnd Sub
Private Sub Command1_Click()
gstrSEP_DIR = "\"
FPDeleteTree ("d:\www")
End Sub
能不能写点说明代码的地方.FSO对象怎么用呀.怎么不说清点
要慎用!!!