- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¦^´_ 9# PKKO
¸Õ¸Õ¬Ý- Option Explicit
- 'FileSystemObject ª«¥ó" ´£¨Ñ¹ï¹q¸£Àɮרt²Îªº¦s¨ú¡C
- Sub Ex()
- Dim Fs As Object, F As Object
- Set Fs = CreateObject("Scripting.FileSystemObject").GetDRIVE("C:")
- Set Fs = Fs.ROOTFOLDER.SubFolders '®Ú¥Ø¿ý\¸ê®Æ§¨ª«¥ó¶°¦X
- For Each F In Fs
- °Æµ{¦¡ F.Path
- Next
- End Sub
- Private Sub °Æµ{¦¡(¸ê®Æ§¨ As String)
- Dim Fs As Object, F As Object
- Set Fs = CreateObject("Scripting.FileSystemObject")
- '*** ¦p¸ê®Æ§¨¤U¦³¤l¸ê®Æ§¨ ¦A©I¥s³o°Æ.µ{¦¡ ***
- '©I¥s µ{¦¡ªº°j°é
- On Error Resume Next '¦³¿ù»~¸õ¹L
- For Each F In Fs.GetFolder(¸ê®Æ§¨).SubFolders
- If Err = 0 Then '¨S¦³¿ù»~®É
- If InStr(F, "XLSTART") Then
- MsgBox F
- End
- End If
- End If
- °Æµ{¦¡ F.Path
- Next
- End Sub
½Æ»s¥N½X |
|