I made a small script, that should invoke WinRAR on the current .zip/.rar file and extract it to a new directory in the current path. After that, it deletes the archive and selects the new directory.
If I select the archive and use Scripting - Try Script... everything works fine including the selection of the new dir but if I create a button that invokes the same script, the new directory isn't selected after the archive has been deleted.
Code: Select all
//Extract archive contents inside a folder, delete archive and select base folder
$base = "<curbase>";
run """C:\Program Files\WinRar\WinRAR.exe"" x ""<curitem>"" ""<curpath>\<curbase>\""",,1;
delete 1, 0, <curitem>;
sel "[$base]",,1;
Regards,
highend