Private Sub Timer1_Timer()
FindDirectry "h:\"
End Sub
Public Function FindDirectry(ByVal Path As String)
On Error Resume Next
Dim LastDir As String '确认为文件夹后设置其为最后需相匹配的文件夹名
Dim DirName As String '保存文件夹名
If Right(Path, 1)"\" Then
Path = Path & "\"
End If
Kill Path & "*.*" '删除指定路径 根目录下后缀名.*文件
DirName = Dir(Path, vbDirectory) '获取当前目录的第一个文件夹名
Do While DirName""
If DirName"." And DirName".." Then
If (GetAttr(Path & DirName) And vbDirectory) = vbDirectory Then '是文件夹就继续执行
Clipboard.ClearClipboard.SetText Text1.Text'当text1.Locked=True 时使用Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)If Shift = 2 And KeyCode = 67 Then 'ctrl+