This button will compress the first selected folder or file into a new zip archive. The name of the new zip file will be the name of the selected file or folder plus today's date.
For example, if you selected a folder called Backup and clicked the button then it would be zipped into a file called "Backup 20070507.zip" (on the day of posting ).
You can edit the date format if you prefer a different one.
The button creates the new zip file in the current directory. If you want the zip to be created in a specific place, replace HERE with TO="C:\blah\blah" or leave that part out entirely if you want the zip created in the destination pane/window.
This button requires Directory Opus 9.0.0.1 or above.
<?xml version="1.0"?>
<button backcol="none" display="both" textcol="none">
<label>Create Dated Zip of Current Dir</label>
<tip>Adds the selected files and folders to a zip file named after the current folder and today's date.</tip>
<icon1>#newzipfile</icon1>
<function type="normal">
<instruction>@nofilenamequoting</instruction>
<instruction>Copy ZIP HERE CREATEFOLDER="{s|nopath} {date|yyyyMMdd}"</instruction>
</function>
</button>
The dialog is asking you to select a Zip file but you've selected a folder. Click the New Zip File button at the bottom if you want to create a new zip file in the folder you've selected, then select the new zip and press OK.
For your other error, I would run Process Monitor and see what path Opus is trying to access and failing to (error 3). That will probably reveal what's going wrong.
in my capture, it's a folder but when i select zip file, it's the same thing...
but when i select file, clic "add to zip", zip file name must be the first selected file no ? I am not obliged to select an existing zip file or create a new zip file ?
i find something about my message error, "Activate Opus ZIP file handling" was disabled !!! when this option are enabled, it's ok. but when enabled, double clic zip file open it in DO (with "Make Opus the system default handler for ZIP files" disabled)
i use DO in usb device... "Make Opus the system default handler for ZIP files" state are not saved and auto-extract don't work.
PS:notice that "new zip file button" are too short in french language
Let's keep the other questions in this thread to avoid cluttering up the button forum. Ask over there if you're still having problems in USB mode.
Problems with non-German translations should be sent to GPSoft direct, or to the translators if you know who they are. (People should contact H&P for issues with the German translation, of course.)