I have a several years old script that I use every few days ever since:
Code: Select all
$curPath = "<curpath>";
$folderName = "<curfolder>";
$parentFolder = regexreplace($curPath, "^(.*(?=\\)).*", "$1");
$winRARCmd = "<xydrive>\Tools\WinRAR\WinRARPortable.exe";
run """$winRARCmd"" a -r -ep1 ""$parentFolder\$folderName.zip"" ""$curPath\*.*""", , 1;
goto "$parentFolder";
setting('BackgroundFileOps', 0);
delete 1, 0, "$curPath";
sel "$folderName.zip", , 1;
Even more weird is, that nothing happens when I run the script from the Scripting - Run Script... dialog oO
If I call it from a user defined button it works, but produces the mentioned effect...