Help with extracting in dopus

I want to assign a button on the toolbar for extracting archive in the current folder with the following criteria: - without confirmation - renaming all without confirmation - if there is more then 1 file or folder in archive automatically create folder with archive file name as folder name.

Is this possible?

Try this code:

copy extract=sub here force

Note that this code will also create a new folder when there's only one file in the zip file ...

Yes great thanks Christiaan. I asked the last criterium because sometimes you have lots of archives to sort out but you don't know whether the archives are packed in a parent folder or just in the root of the archive. That means you have to go in the archive first to check it out. The only disadvantage is that if you do have 1 file or folder you get 1folder and 1 same underlying.
But this is good to. If you know a workaround however please let me know.

I forgot to ask. Could I also add a criterium to the command to delete the unpacked archives afterward.?

To delete the unpacked archives afterwards:

@nodeselect copy extract=sub here FORCE delete

Or use

Delete NORECYCLE: This option will never attempt to use the Windows Recycle Bin, but instead will permanently delete the files. It overrides the setting in the File Operations section of Preferences.

Be careful with extract-and-delete buttons. If the extract fails for some reasons (e.g. lack of space) then the delete will still happen.

They're handy buttons and do work fine almost all of the time, but be careful if the data involved is something you can't easily replace.