zipFile() zipFile()
Dim winrarPath$, fullname$, filename$, filePath
winrarPath = "c:\program files\winrar\winrar.exe a -afzip "
filePath = Application.GetOpenFilename
If filePath <> False Then
fullname = StrReverse(Split(StrReverse(filePath), "\")(0))
filename = Split(fullname, ".")(0)
Shell winrarPath & filename & " " & fullname
End If
End Sub
Dim winrarPath$, fullname$, filename$, filePath
winrarPath = "c:\program files\winrar\winrar.exe a -afzip "
filePath = Application.GetOpenFilename
If filePath <> False Then
fullname = StrReverse(Split(StrReverse(filePath), "\")(0))
filename = Split(fullname, ".")(0)
Shell winrarPath & filename & " " & fullname
End If
End Sub
作者:laoyebin(Paladin.lao)
博客园出处:
http://laoyebin.cnblogs.com/
个人网站英文出处:
http://mrvsto.com/
个人网站中文出处:
http://cn.mrvsto.com/
转载于:https://blog.51cto.com/laoyebin/327668