Friday, June 8, 2007

7z and DOpus

I prepared four buttons for using 7z together with DOpus:

Add to 7Z (one archive) & Add to 7Z (separate archives)
Extract 7Z & Extract 7Z to ...

<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none" type="three_button">
<label>Add to 7Z (one archive)</label>
<icon1>#addtozip</icon1>
<button backcol="none" display="both" label_pos="right" textcol="none">
<label>Add to 7Z (one archive)</label>
<icon1>#addtozip</icon1>
<function type="normal">
<instruction>@runonce:C:\7-Zip\7z.exe a -m{dlgchoose|Choose compression method|Ultra=x9+Maximum=x7+Fastest=x1+Fast=x3+Normal=x5+Store=x0} -r "{destpath}{dlgstringS|Archive Name|{file$}.7z}" {allfilepath}</instruction>
</function>
</button>
<button backcol="none" display="both" label_pos="right" textcol="none">
<label>Add to 7Z (separate archives)</label>
<icon1>#addtozip</icon1>
<function type="normal">
<instruction>C:\7-Zip\7z.exe a -m{dlgchoose|Choose compression method|Ultra=x9+Maximum=x7+Fastest=x1+Fast=x3+Normal=x5+Store=x0} -r "{destpath}{dlgstringS|Archive Name|{file$}.7z}" {allfilepath}</instruction>
</function>
</button>
</button>


<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none" type="three_button">
<label>Extract 7Z</label>
<icon1>#addtozip</icon1>
<button backcol="none" display="both" label_pos="right" textcol="none">
<label>Extract 7Z</label>
<icon1>#addtozip</icon1>
<function type="normal">
<instruction>@nodeselect </instruction>
<instruction>C:\7-Zip\7z.exe x {filepath} -r -o"{destpath$}"</instruction>
</function>
</button>
<button backcol="none" display="both" label_pos="right" textcol="none">
<label>Extract 7Z to...</label>
<icon1>#addtozip</icon1>
<function type="normal">
<instruction>@nodeselect </instruction>
<instruction>C:\7-Zip\7z.exe x {filepath} -r -o"{destpath$}\{dlgstringS|Foldername|{file$|noext}}"</instruction>
</function>
</button>
</button>


How to add buttons to your toolbars
DOpus Resource Centre

No comments: