You should not create separate UnZip, UnLhA and UnLZX buttons - create one "Extract" button instead, which extracts all sorts of archives:
While editing the button, don't make it invoke "AmigaDOS: unlzx..." or anything like that. Instead make it invoke "Command: User1".
Then you make sure you have a proper filetype for each archive format you want to be able to extract. Edit each filetype, select "User1" in the "Events..." area, then configure this event to use the actual AmigaDOS command to extract this particular archive.
Now you have an "Extract" button that works with any archive formats you have configured.
You can use the same approach to have an "Edit" button, which loads text files into a text editor, ILBM files into DPaint and Mods into Protracker. That's the beauty of the UserX command in DOpus.
|