Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 ... 10
31
Support and Feedback / Invalid Path
« Last post by PhilR on February 09, 2025, 15:40:10 »
Hello

Windows 10 PRO latest build
using Multi Commander x64 v15.0 (latest build 3072)

always same problem since 2 years and previous build

Invalid path message on a lot of folder :

For exemple :
see attached screenshoot

of course these folders exist and have files


Thanks
Phil

32
Support and Feedback / How to display highlighted file details, not selecting it?
« Last post by artur-com on February 09, 2025, 14:35:06 »
Hi everyone,
I am a beginner Multi Commander user, and I am struggling with customization.
Is there a way to show on the bottom bar file details actually highlighted instead of selecting it or hovering over mouse cursor?



Also, how to display drive % usage as a bar next to selected drive? Not only with numbers.

Thank you in advance,
Cheers.
33
Script / Re: 7-zip profiles vs cmd line 7-zip?
« Last post by Ulfhednar on February 09, 2025, 14:04:04 »
Yes the idea was to scan subfolders; zip specifically named folders; delete those source zipped folders, leaving the 7z in their place & log operations.
(a & b were just placeholders for my test before giving it actual pathing)

I was thinking of adding a StrIsRegExpMatchNoCase or similar to delete redundant files recursively.  Basically a tidy up operation on a number of subfolders.
I got this, but the DeleteFiles instruction hangs the debugger & MC with a deletion dialog, tried with & without {}s on the last instruction.  Also tried SILENT to no effect  ???
Am I missing sth or is this a bug?

Code: [Select]
@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);

Thanks in advance for looking at this
34
Script / Re: 7-zip profiles vs cmd line 7-zip?
« Last post by Mathias (Author) on February 09, 2025, 13:00:47 »
Not sure I understand what you ar doing.. packing each file in a folder and subfolders into its own 7z archive ?
35
Script / Re: 7-zip profiles vs cmd line 7-zip?
« Last post by Ulfhednar on February 09, 2025, 12:46:36 »
I ended up adding a Console .bat to a button.
This works OK scanning for subfolders, 7-zipping at max compression & deleting if 7z op is OK. Ops are logged to txt on base dir.

I would like to be able to do sth like this with MS as I think I could potentially make a richer & more functionally extensive script but I'm not sharp enough on MS atm  :-\
I will see if I can come up with sth in due course ;)

Code: [Select]
@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
36
Script / Re: 7-zip profiles vs cmd line 7-zip?
« Last post by Ulfhednar on February 08, 2025, 15:42:32 »
Thanks for the reply Mathias.
I will try to run it with the CLI values & see how far I get ;)
-mx9 is the max 7-Zip compression switch.
37
Script / Re: 7-zip profiles vs cmd line 7-zip?
« Last post by Mathias (Author) on February 07, 2025, 17:05:00 »
Currently MC is using the default value when compressing using 7Zip.. It is on the list to allow for modifying them. I just pushed that forward since building a UI for that is boring.

I will se If I get the time to put some time to it. It been high on the list for a while.

If you use the cmd line exe I think the compression level is -mx9 for maximum.
but there are other related setting to for it that affect compression

https://documentation.help/7-Zip/method.htm (make sure you scroll down to 7z.. )

38
Script / 7-zip profiles vs cmd line 7-zip?
« Last post by Ulfhednar on February 07, 2025, 15:57:14 »
I was looking at using a script that calls the packer function & uses 7-zip max compression, but cannot see how to specify or change the command for MAX on 7-zip specifically in the packer profiles, I cannot get the 'external' button to work for an external packer either. Duh not activated yet :-\  ;D
Running Internal zip (MAX) doesn't give me the smallest possible output.
Is this functionality present or do I just call the external 7-zip?

I got as far as this, where I wanted to compress selected subfolders:-
Quote
@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);

Any help on how to call max compression appreciated ;)
39
Support and Feedback / Re: Can not move some files
« Last post by Sl on February 04, 2025, 11:45:09 »
2025-02-04 13:41:50.748 Folder Created "C:\Temp\zz"
2025-02-04 13:41:58.201 Created Folder : "C:\Temp\zz\Pictures"
2025-02-04 13:41:58.217 Copied : "\\***il01\profiles$\sa***9.V6\Pictures\desktop.ini" => "C:\Temp\zz\Pictures\desktop.ini" - 504 bytes in 2ms 2ms Total : 2ms - Average Speed : 252000 bytes/sec (246,1 KB/sec), Read data time 1ms (492,2 KB/sec), Write data time 1ms (492,2 KB/sec)
2025-02-04 13:41:58.217 Handle file Operations error : 166 (0) - Can not delete protected file.
2025-02-04 13:41:59.686 Deleted : \\***il01\profiles$\sa***9.V6\Pictures\desktop.ini
40
Support and Feedback / Re: Can not move some files
« Last post by Mathias (Author) on February 04, 2025, 10:36:09 »
Yes maybe..
Does it say anything more about the error in the FileOperatiopn Log ? (Ctrl+L, then click the fileoperation tab)
Pages: 1 2 3 [4] 5 6 7 8 ... 10