Show Posts

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.


Messages - Ulfhednar

Pages: [1] 2 3 4 5 ... 22
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  ;D

2
Beta Releases / Re: 15.3
« on: April 17, 2025, 11:14:15 »
Thanks Mathias.
I did wonder why/how it was the shell commands that caused it, have never seen it before.
I selected items in MC & then used ctrl+x / v using MC to navigate between folders. IIRC there had also been a file being moved to USB via MC move command/dialog when I'd started using the shell commands. 

& Thanks for the update but FYI
Code: [Select]
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.

4
Beta Releases / Re: 15.3
« on: April 16, 2025, 22:29:25 »
Thanks Mathias :)
Had a couple of crashes/restarts when using ctrl+x ctrl+v. 
Sent in the crash reports. It referenced kernel.dll in one dialog.

5
Beta Releases / Re: 15.3
« on: April 16, 2025, 10:02:06 »
Received update to 15.4 b3086 today.
Change log was blank but I installed it anyway...
I'll let you know if my PC explodes  ;)

6
Script / Re: Is there a StrReplace that's case insensitive?
« on: April 09, 2025, 13:56:09 »
See latest beta that was release today

Thanks Mathias
Code: [Select]
$NewName = StrReplace($OrgName, "<string to match>", "<replacement>", "ignorecase");is like Xmas come early  ;D

7
Script / Re: Is there a StrReplace that's case insensitive?
« on: April 08, 2025, 13:39:44 »
Thanks Mathias. Would be great if you can find time for it  ;)

8
Script / Is there a StrReplace that's case insensitive?
« on: April 07, 2025, 17:26:13 »
I'm wondering if there is a case insensitve version of StrReplace
I've seen updates for MS commands in MC updates but I know that some of the MS commands haven't been listed in the docs yet, so does this exist or did I only dream about it ? ;)


9
Support and Feedback / Re: Regex matches in MR
« on: April 04, 2025, 12:28:09 »
Thanks for the replies Mathias & Jungle.
The regex 'flavor' is supposed to be C++ - which is what I set the online test to.
I spend quite a lot of time using regex renames & I do try to ensure the box is ticked, I definitely did on this as I was trying flavor variations for about 15mins when my first checked & rechecked c++ version wouldn't work. :(
So.
Today #1 works fine  :o ???  MC has been updated since but still this is a mystery.
Jungle is correct about entering the regex via the ... dialog, as adding it via the entry fields works. That must have been the gotcha on that.

Thanks again!

10
Support and Feedback / Regex matches in MR
« on: April 02, 2025, 13:20:53 »
I have a couple of questions about regex use in MultiRename

(?:[0-9a-z]{30})
should match string:-
0ec4dc9a5ea17339b06d1d0f1b2283
but doesn’t find it whether alone or placed in a longer string.

Test page on regex101.com shows it works in both instances eg:
Quote
(?:[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)


Multiple search matches when | separated eg:-
(abc|zxy|der)
won’t work, each element needs to be separately entered on an individual line.

Is this expected behaviour?
I checked the regex's work online so I'm wondering what is different.

11
Beta Releases / Re: 15.3 Beta 3079
« on: April 02, 2025, 13:06:43 »
Thanks for the fix Mathias ;)

12
Beta Releases / Re: 15.2 Beta 3078
« on: March 28, 2025, 12:18:39 »
Thanks for the update Mathias.
Unfortunately some of my context items have now been lost.  They still exist in Explorer but not in MC i.e. - the base item remains but the submenu is a blank tab.  ::)
Tried a reinstall - no change.
Can I manually restore these? Regedit?

13
Script / Re: 7-zip profiles vs cmd line 7-zip?
« on: February 10, 2025, 12:50:50 »
Sorry for destroying your Monday morning Mathias. 
You pointed me in the right direction.
So I realized what was wrong finally!
I'd used
Code: [Select]
@var $Items = GetSourceItems();but should have used
Code: [Select]
@var $Items = GetSourceItems(1);
 ::)

Thanks for the assist :)

A bit OT:-
 https://multicommander.com/Docs/multiscript/functions/filesystem#deletefiles
Shows RECYLE, should this be amended to RECYCLE? It doesn't appear in the $options debugger output.
If I add NODIALOG & RECYLE it doesn't send to the recycle bin.  I thought it would  ??? 


Lastly .... how do you script to recurse subdirs from GetSourcePath etc?

14
Script / Re: 7-zip profiles vs cmd line 7-zip?
« on: February 10, 2025, 11:51:25 »
Thanks for the reply Mathias.
Using your code works i.e. giving the instruction a fixed path for items, when I try to get it to work calling the items in my filtered array, it hangs.

The debugger has the red highlight active on the last line but clicking on anything fails to advance the operation.
The only window that shouldn't be present is the hung dialog. (See attached) No error dialogs or windows.

All MC dialogs will minimize but won't finish the op, restart req'd.
Is it related to how the path/filename is being added to the array?  the $fullfilename is correctly enumerated in the debugger showing the whole string.

15
Script / Re: 7-zip profiles vs cmd line 7-zip?
« 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

16
Script / Re: 7-zip profiles vs cmd line 7-zip?
« 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

17
Script / Re: 7-zip profiles vs cmd line 7-zip?
« 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.

18
Script / 7-zip profiles vs cmd line 7-zip?
« 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 ;)

19
Beta Releases / Re: v14.6 BETA
« on: January 31, 2025, 13:01:42 »
Oh OK thanks Mathias... You had me worried!   :D


***
Yaaaay! Thanks for the fixes Mathias c/o b3066!  8) ;)

20
Beta Releases / Re: v14.6 BETA
« on: January 31, 2025, 12:47:36 »
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

This is the Selection Status Area in MC explorer panel settings, yes? Still cannot get it to show anything , Win11 Explorer does show these details OK in Status Bar.
I wondered if enable/disable freespace display would do anything but it didn't.
I also noticed the shifting of the panel nav icons left (attached), I haven't updated my gfx drivers btw.
I guess a clean re-install is next...  :-\

21
Beta Releases / Re: v14.6 BETA
« on: January 30, 2025, 13:51:25 »
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

22
Beta Releases / Re: v14.3
« on: November 14, 2024, 18:24:26 »
Thanks for the super fast fix Mathias.  8)
All good so far.
No ghosts & sizes correct.   :)

23
Beta Releases / Re: v14.3
« on: November 14, 2024, 14:28:21 »
Thanks for the 3038 update & fixing the file sizes output/updating Mathias!

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 Commands 
Code: [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.
I will check, It started in 3038 ?  3036 was fine ?

Hi Mathias, yes was fine in the 3036 build (I just had the size update issue)
& I just added above - "I notice the move op done via Win ctrl-X / ctrl-V leaves a 'ghost' file & size value in the folder." in case you missed it ;)

24
Beta Releases / Re: v14.3
« on: November 14, 2024, 14:00:09 »
Thanks for the 3038 update & fixing the file sizes output/updating Mathias!

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 Commands 
Code: [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.
{Update}  I notice the move op done via Win ctrl-X / ctrl-V leaves a 'ghost' file & size value in the folder.

25
Beta Releases / Re: v14.2 BETA
« on: July 29, 2024, 12:36:29 »
Just wanted to say thanks Mathias for the updates & additions of this month.
Lot of things I need to experiment with  ;D

Pages: [1] 2 3 4 5 ... 22