1
Beta Releases / Re: 15.3
« on: April 18, 2025, 14:32:58 »
Thanks for replies Mathias.
We can always rely on M$ to create problems
We can always rely on M$ to create problems

MultiCommander v14.2 is released!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Downloading update for Multi Commander...
Failed to download MultiCommander (HTTP Status code : 404)
Error : Call "Server Error" , Failed with error code : 13
is output by the updater ATM.
See latest beta that was release today
$NewName = StrReplace($OrgName, "<string to match>", "<replacement>", "ignorecase");
is like Xmas come early (?:[0-9a-z]{30}) /gm
Non-capturing group (?:[0-9a-z]{30})
Match a single character present in the list below [0-9a-z]
{30} matches the previous token exactly 30 times
0-9 matches a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)
a-z matches a single character in the range between a (index 97) and z (index 122) (case sensitive)
@var $Items = GetSourceItems();
but should have used@var $Items = GetSourceItems(1);
@var $currentPath = GetSourcePath();
@var $Items = GetSourceItems();
@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[] = {"NODIALOG"};
DeleteFiles($array2, $options);
@echo off
setlocal
REM Set the base directory
set "base_dir=C:\dir\to\scan\"
REM Set the full path to the 7-zip executable
set "7zip_path=C:\Program Files\7-Zip\7z.exe"
REM Set the log file path
set "log_file=%base_dir%\operations_log.txt"
REM Initialize the log file
echo Log file created on %date% at %time% > "%log_file%"
REM Recursively scan for folders named "a" and "b"
for /d /r "%base_dir%" %%d in (.) do (
if exist "%%d\a" (
echo Compressing folder "a" in "%%d" >> "%log_file%"
"C:\Program Files\7-Zip\7z.exe" a -t7z -mx=9 "%%d\a.7z" "%%d\a\" >> "%log_file%" 2>&1
if exist "%%d\a.7z" (
echo Zip succeeded. Deleting folder "%%d\a" >> "%log_file%"
rmdir /s /q "%%d\a" >> "%log_file%" 2>&1
) else (
echo Failed to create zip for "%%d\a" >> "%log_file%"
)
)
if exist "%%d\b" (
echo Compressing folder "b" in "%%d" >> "%log_file%"
"C:\Program Files\7-Zip\7z.exe" a -t7z -mx=9 "%%d\b.7z" "%%d\b\" >> "%log_file%" 2>&1
if exist "%%d\b.7z" (
echo Zip succeeded. Deleting folder "%%d\b" >> "%log_file%"
rmdir /s /q "%%d\b" >> "%log_file%" 2>&1
) else (
echo Failed to create zip for "%%d\b" >> "%log_file%"
)
)
)
endlocal
@var $zipPath = "C:\Program Files\7-Zip\7z.exe";
@var $scanDir = "C:\path\to\the\directory";
@function CompressFolder($folderPath, $folderName) {
@var $zipFileName = "$folderName.7z";
MC.Run CMD="EXTRACT" TARGET="$folderPath" SOURCE="\"$zipFileName\"" USERCONFIRMATION="NO" ARCHIVE="$zipPath" ARGUMENTS="a -r \"$zipFileName\" \"$folderPath\\*\"";
}
@function ScanFolders($currentDir) {
@var $dirs = MC.Filesystem.ListDirs(path="$currentDir");
@for $dir in $dirs {
@var $folderName = MC.GetValue(PATH="$dir", INDEX="basename");
@if ($folderName == "a" || $folderName == "b") {
CompressFolder($dir, $folderName);
}
ScanFolders($dir);
}
}
ScanFolders($scanDir);
Thanks for the update Mathias.
I noticed after the update today b3064, that the filesize output is missing from the bottom left of the panel. (Where I have put a yellow box on the image)
Tried restart, no luck. Has a setting been lost or is it broken?
Thanks
Thanks for the 3038 update & fixing the file sizes output/updating Mathias!I will check, It started in 3038 ? 3036 was fine ?
However I have found a problem with this build I think.
F6, drag'n'drop & my buttons now hang on dialog & that also impacts the queue process.
Where I use a button + User Defined Command in my move operations the dialog now hangs for as long as I leave it @0%.
i.e. User Defined CommandsCode: [Select]MC.Explorer.Move NODIALOG USEEXISTINGQUEUE
This seems to be related to the delete phase when a single item is moved as it shows the progress bar but hangs on open, folder+file(s) move is less likely to behave at all.
MC.Explorer.Move NODIALOG USEEXISTINGQUEUE