You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With New cVszArchive
.AddFile App.Path & "\plugins\*.*"
.Parameter("x") = 3 '-- CompressionLevel = Fast
.CompressArchive App.Path & "\plugins.7z"
End With
MsgBox "pluginsx.7z created ok", vbExclamation
but not working
The text was updated successfully, but these errors were encountered:
AddFile method as the name implies can add a single file and there is no AddFolder method available but it is trivial to enum files in a folder and call AddFile for each one of them like this
Dim vElem As Variant
With New cVszArchive
' .AddFile App.Path & "\plugins\*.*"
For Each vElem In CreateObject("Scripting.FileSystemObject").GetFolder(App.Path & "\plugins").Files
.AddFile vElem.Path
Next
.Parameter("x") = 3 '-- CompressionLevel = Fast
.CompressArchive App.Path & "\plugins.7z"
End With
MsgBox "pluginsx.7z created ok", vbExclamation
Another option is to implement your custom EnumFiles function similar in usage as the code above if you need to recursively enumerate files in all subfolders or filter on a wilcard mask or whatever your needs be.
Is possible to add from folder @wqweto ?
i have try:
but not working
The text was updated successfully, but these errors were encountered: