[办公][压缩]内置函数解压文件zip-rar-7z

SmartZip(需要解压文件的路径,解压到的位置) return SmartZip(s, o, t = 4) { IfNotExist, %s% return, -1 oShell := ComObjCreate("Shell.Appli
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]



声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA捐赠
共{{data.count}}人
人已捐赠
案例

[办公][图像]autohotkey辅助ps画笔工具

2017-2-26 11:45:36

案例

[办公][Excel]Excel简单一键求和 Autohotkey

2017-3-14 14:57:36

2 条回复 A文章作者 M管理员
  1. 不胖不胖

    111

  2. ahk小明

    除了可以解压zip文件外,还能解压rar和7z吗,为什么我试了无法解压rar和7z的压缩包

❯
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索