81
Beta Releases / Re: 15.6 BETA
« Last post by Mathias (Author) on July 29, 2025, 15:14:47 »Thanks for the additional features Mathias.
I think that the last update may have broken something in the MS execution. MC 15.6 b3110 x64 on Win11 24H2 b26100.4652
I get a ‘Cannot delete’ msg when attempting to delete or move files using my previously working scripts.
Stepping through in the debugger everything seems 100% until the delete command is reached, I tried with & without options & it always fails.
E.g.Code: [Select]@var $currentPath = GetSourcePath();
Breaks at last line with error msg (attached screenshot).
@var $Items = GetSourceItems(1);
@var $count = arrayCount($Items);
@var $curItem;
@var $fullFilename;
@var $array2[];
// Loop all items in the $Items array
for( $n = 0; $n < $count; $n++)
{
$curItem = $Items[$n];
$fullFilename = $currentPath ^ $curItem;
@var $isMatch = StrIsRegExpMatchNoCase($fullFilename, "[a-z0-9]{30}");
if($isMatch)
{
arrayAdd($array2, $curItem);
}
}
@var $options[] = {"RECYCLE", "NODIALOG"};
DeleteFiles($array2, $options);
Any ideas? Thanks!
Can you give me example on how filenames should be for the script to try to delete them ? so I can do some testing