vb连续解压多个压缩包到同一个文件夹,但每压缩包里面都有同一个文件,如何使其不弹出覆盖对话框?
关键代码如下:ForI=0ToJSource=StrDir&TxtDir(I)'.rar的路径FileString=Rarexe&"X"&Source&""&Path1R...
关键代码如下:
For I = 0 To J
Source = StrDir & TxtDir(I) '.rar的路径
FileString = Rarexe & " X " & Source & " " & Path1
Result = Shell(Rarexe & " X " & StrTxtFile & "\" & TxtDir(I) & " " & Path1 & "\", vbHide)
Do While Result = 0
DoEvents
Loop
Result = 0
Do While Dir(Path1 & "\" & KillFiles) <> ""
DoEvents
Kill Path1 & "\" & KillFiles
Sleep 200
Kill Path1 & "\" & KillFiles
Loop
Next I
MsgBox "解压完成!" 展开
For I = 0 To J
Source = StrDir & TxtDir(I) '.rar的路径
FileString = Rarexe & " X " & Source & " " & Path1
Result = Shell(Rarexe & " X " & StrTxtFile & "\" & TxtDir(I) & " " & Path1 & "\", vbHide)
Do While Result = 0
DoEvents
Loop
Result = 0
Do While Dir(Path1 & "\" & KillFiles) <> ""
DoEvents
Kill Path1 & "\" & KillFiles
Sleep 200
Kill Path1 & "\" & KillFiles
Loop
Next I
MsgBox "解压完成!" 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询