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

Wednesday, May 30, 2007

How to run "Remote Desktop" from Directory Opus

This button shows dialog with string request which asks you for computer name or it's IP address. Default value of this dialog window is clipboard content (helpful if you can copy computer name from other application

<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none">
<label>Remote Desktop</label>
<icon1>#gomycomputer</icon1>
<function type="normal">
<instruction>mstsc /v: {dlgstringS|Please enter computer name or IP address|{clip}} {dlgchoose|Please choose screen size|Fullscreen=/F+640x480=/w:640 /h:480+800x600=/w:800 /h:600+1024x768=/w:1024 /h:768+1280x1024=/w:1280 /h:1024+1600x1200=/w:1600 /h:1200}</instruction>
</function>
</button>

How to add buttons to your toolbars
DOpus Resource Centre

Tuesday, May 22, 2007

How to run "Disk Management" from Directory Opus?

Type (in one line):

<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none">
<label>Disk Management</label>
<icon1>C:\WINDOWS\system32\mmc.exe,0</icon1>
<function type="normal">
<instruction>runas /user:DOMAIN\ADMINISTRATOR "%windir%\system32\mmc.exe diskmgmt.msc"</instruction>
</function>
</button>


Where DOMAIN is your domain name and ADMINISTRATOR is your domain administrator account (local "Administrators" group member).