There’s an old plugin that is no longer maintained called RealZip which can create and open zip archives. Unfortunately, the ZipFolder functionality of Windows Explorer is not exposed for other applications to use.
Thanks Andrew L,
I downloaded it but I cannot get it to work, may be because I do not know how to use plugins.
I added the plugin to the Plugins folder in the Real Studio folder.
Lennox
@Lennox: then you’d better tell us EXACTLY what the problem is. What did you do in step 1, step 2 and so on? What was the result? And what would you have expected? Zip ain’t really rocket science.
I have a folder… myFoldertoCompress = Specialfolder.Desktop.Child(“my Folder to Compress”)
myFoldertoCompress already exists on the desktop and contains 85 files, no folders
I would like to create a .zip archive of that folder, so my code is…
Dim myFoldertoCompress, myFoldertoCompressZipped as folderitem
myFoldertoCompress = Specialfolder.Desktop.Child("my Folder to Compress") // This folder already exists on the desktop and contains 85 files, no folders
myFoldertoCompressZipped = SpecialFolder.Desktop.Child("my Folder to Compress.zip") // This is the .zip file I want to create
Dim sh As Shell
sh = new Shell
sh.execute compact /c /myFoldertoCompress *.*
On compiling my app I get this error…
This item does not exist
sh.execute compact /c /myFoldertoCompress . // compact is highlighted
sh.execute /c /myFoldertoCompress .
On compiling my app I get this error…
There is more than one item with this name and it’s not clear to which this refers.
sh.execute /c /myFoldertoCompress . // sh.execute is highlighted
sh.execute c /myFoldertoCompress .
On compiling my app I get this error…
This item does not exist
sh.execute c /myFoldertoCompress . // c is highlighted
Dim myFoldertoCompress, myFoldertoCompressZipped as folderitem
myFoldertoCompress = Specialfolder.Desktop.Child(“my Folder to Compress”) // This folder already exists on the desktop and contains 85 files, no folders
myFoldertoCompressZipped = SpecialFolder.Desktop.Child(“my Folder to Compress.zip”) // This is the .zip file I want to create
Dim sh As Shell
sh = new Shell
'sh.execute /c /myFoldertoCompress .
sh.execute “compact /c /myFoldertoCompress .”
If sh.errorCode = 0 then
MsgBox "No Error - " + Str(sh.errorCode) + " : " + sh.Result
else
MsgBox "Error " + Str(sh.errorCode) + " : " + sh.Result
end if
Dim myFoldertoCompress, myFoldertoCompressZipped as folderitem
myFoldertoCompress = Specialfolder.Desktop.Child(“my Folder to Compress”) // This folder already exists on the desktop and contains 85 files, no folders
If myFoldertoCompress.exists then
Dim myFoldertoCompressShellpath as string
myFoldertoCompressShellpath = myFoldertoCompress.Shellpath
end if
myFoldertoCompressZipped = SpecialFolder.Desktop.Child(“my Folder to Compress.zip”) // This is the .zip file I want to create
Dim sh As Shell
sh = new Shell
'sh.execute /c /myFoldertoCompress .
sh.execute “compact /c /myFoldertoCompressShellpath .”
If sh.errorCode = 0 then
MsgBox "No Error - " + Str(sh.errorCode) + " : " + sh.Result
else
MsgBox "Error " + Str(sh.errorCode) + " : " + sh.Result
end if