ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

½Ð°Ý¦³¿ìªk¥ÎvbaŪ¨úrarÀɶÜ??

½Ð°Ý¦³¿ìªk¥ÎvbaŪ¨úrarÀɶÜ??

¦pÃD¡A
§Ú¤w¸gª¦¤å³\¤[³£¨S¦³¬ÛÃöªº¤å³¹¡A
¥u¦³¤@½g¤ñ¸û¦³Ãö¡A¦ý¤£¯à¥Î¡A§Ú§ä¨ìªºµ{¦¡½X¦p¤U¡G

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub GetFileList()
    Dim Path As String
    On Error Resume Next
    Path = Application.InputBox("请输¤J¸ô径")
    If Path = "" Then Exit Sub
    If Right(Path, 1) <> "\" Then Path = Path & "\"
    If Dir(ThisWorkbook.Path & "\RarFileList.txt") <> "" Then Kill ThisWorkbook.Path & "\RarFileList.txt"
    Shell "cmd /c " & ThisWorkbook.Path & "\rar vb " & Path & "*.rar >>" & ThisWorkbook.Path & "\RarFileList.txt", vbHide
    Do While Dir(ThisWorkbook.Path & "\RarFileList.txt") = ""
        DoEvents
    Loop
    Sleep 600
    If Dir(ThisWorkbook.Path & "\RarFileList.txt") <> "" Then Workbooks.OpenText Filename:=ThisWorkbook.Path & "\RarFileList.txt", DataType:=xlDelimited
End Sub

        ÀR«ä¦Û¦b : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD