rt
解决方案 »
- VB DLL OCX 位置问题?
- 如何让字段的数字总和统计显示在text1上
- 学习vb有哪些好方法
- sendmessage向打开对话框的combox发送发送文字消息 ,改变combox的TEXT
- 不用commondialog控件如何弹出打开对话框?
- CSDN帖阅读不方便,我做了个软件,方便读帖!
- 关于树型框的问题
- 紧急求救各位大神!!!VB编程出现91错误 ,对象变量或with未设置
- 在VB中,如何添加excel中第一行中所有不为空的单元格中的文本到combo中?
- 请教各位大侠,我用vb6.0制作编译后的程序为什么win98的机器用不了?是因为缺少什么系统文件嘛?可否详细的告诉我这几个系统文件的名称?不胜感激,谢谢
- 大家知道怎么开发 WinAmp 插件吗?
- 重金求救!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Dim fso As New FileSystemObject
fso.DeleteFile "c:\cc\*.txt"
Dim fs, f, f1, fc, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(folderspec)
Set fc = f.Files
For Each f1 In fc
If UCase(Right(f1.Name, 3)) = "TXT" Then
s.Delete
End If
Next
End Sub
Private Sub Command1_Click()
On Error Resume NextFile1.Pattern = "*.txt"
File1.Path = "C:\1"For i = 0 To File1.ListCount - 1Kill File1.Path + "\" + File1.List(i)NextEnd Sub