strFileList = Dir(strFolder & strPattern, vbNormal)
strFileList = Dir(strFolder & strPattern, vbNormal Or vbDirectory)
strPattern = "*.exe"
Dim strFileList As String, strFolder As String, _
strPattern As String
strFolder = Environ("WinDir"): strPattern = "*.*"
If Right$(strFolder, 1) <> "\" Then strFolder = strFolder & "\"
strFileList = Dir(strFolder & strPattern, vbNormal Or vbDirectory)
Do Until strFileList = vbNullString
Select Case strFileList
Case ".", ".." '
Case Else
Debug.Print strFileList
End Select
strFileList = Dir
DoEvents
Loop
Dim strFileList As String
Dim strFolder As String
Dim strPattern As String
'
strFolder = Environ("WinDir")
strPattern = "*.*"
'
If Right$(strFolder, 1) <> "\" Then strFolder = strFolder & "\"
'
strFileList = Dir$(strFolder & strPattern, vbNormal Or vbHidden Or vbSystem Or vbDirectory)
Do
Select Case strFileList
Case ".", ".." '
'verpist dich
Case Else
Me.List1.AddItem strFileList
End Select
'
strFileList = Dir$
'
DoEvents
'
Loop Until strFileList = vbNullString
Сейчас этот форум просматривают: Google-бот, Yandex-бот и гости: 13