SmartZip(需要解压文件的路径,解压到的位置) return SmartZip(s, o, t = 4) { IfNotExist, %s% return, -1 oShell := ComObjCreate("Shell.Application") if InStr(FileExist(o), "D") or (!FileExist(o) and (SubStr(s, -3) = ".zip")) { if !o o := A_ScriptDir else ifNotExist, %o% FileCreateDir, %o% Loop, %o%, 1 sObjectLongName := A_LoopFileLongPath oObject := oShell.NameSpace(sObjectLongName) Loop, %s%, 1 { oSource := oShell.NameSpace(A_LoopFileLongPath) oObject.CopyHere(oSource.Items, t) } } }
亲爱的朋友们,如果你认为本站不错请打赏,我们非常感谢你的支持!
[su_button url=”http://www.autoahk.com/buyamoney” style=”3d” color=”#ffe41c” size=”20″ radius=”round”]赏[/su_button]
除了可以解压zip文件外,还能解压rar和7z吗,为什么我试了无法解压rar和7z的压缩包