sc run produces a "Stepping through a Script" dialog?
Posted: 07 Feb 2019 09:54
v19.60.0008
I have a several years old script that I use every few days ever since:
Now I get the Stepping through a Script dialog window after WinRAR has finished its operation (and no, Scripting - Step Mode is not checked)
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...
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...