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 ... 20
1
Beta Releases / Re: v13.0 **BETA**
« on: May 16, 2023, 15:10:10 »
Thanks for letting me back onto MC x64 Mathias :D

I may have found a possible bug. 
Using 13.0 b2946 x64 when I <shift-click select> a block of files & then <ctrl-click deselect> one or more of them, the selection alters as soon as I move the mouse.
This can also reverse the selection.

I'd appreciate you having a look to see if you can replicate this behaviour.  ;)

UPDATE
 It's now doing what it's supposed to do.... so WTF happened IDK  ::)

2
Beta Releases / Re: v13.0 **BETA**
« on: May 10, 2023, 17:27:16 »
Thanks for reply Mathias.
MC update being x32 not x64 must be the reason for my issue also, as I am now on 32 bit.
Will wait for your fix  :D

3
Beta Releases / Re: v13.0 **BETA**
« on: May 09, 2023, 12:47:00 »
Thanks for the update Mathias.

Just installed b2945 & it seems to have lost many of the entries on the right-click context menu.
MC entries are intact but 3rd party entries have mostly gone.
Any way to recover these or is it necesssary to reinstall the apps?

I used autoruns to inspect the system & the reg entries etc are intact.  The context entries are also OK in Vanilla Explorer.   ::)

4
Support and Feedback / Re: Multiupdate failure
« on: March 29, 2023, 13:50:53 »
Thanks Mathias.
Got it now  8)

5
Support and Feedback / Multiupdate failure
« on: March 28, 2023, 22:54:45 »
Was told of new version & ran updater, got this msg:-

Quote
* BETA version is going to be downloaded.
Updating Multi Commander Located in : "C:\Program Files\MultiCommander (x64)"
=============================================================
You are running on a 64 bit platform.
==================================================
Make sure you do not already have Multi Commander running.
==================================================
Press start to begin update process.

Checking if newer version exists.
Version information received.
Downloading new version of MultiUpdate...
Failed to download MultiUpdate (HTTP Status code : 404)
Error : Call "Server Error" , Failed with error code : 13

Maybe something needs chacking?   ???

6
You can click & drag/release in the same dir & it shows copy with new name as option on the dialog.  (Which you know :) )

Mathias probably needs to add this existing drag functionality to the MS command set, should be possible I hope.   


7
Well, S&R works:

Code: [Select]
@var $sel_files = GetSourceSelectedPaths();
@var $sel_count = arrayCount($sel_files);
@var $find_text = "aaa\\nbbb";
@var $repl_text = "xxx\\nyyy";

@var $n;
for($n = 0; $n < $sel_count; $n++)
{
  @var $file = $sel_files[$n];
#  @var $new_file = PathGetPathPart($file) ^ PathGetNamePart($file, 1) + "_new" + PathGetFileExtPart($file);
  @var $new_file = "*_new.*";

  MC.Utils.FindAndReplace MODE="Many" FIND={$find_text} REPLACEWITH={$repl_text} FILE="{$file}" TARGET="{$new_file}" SILENT REPLACEALL OVERWRITE
}

The full automation requires parsing CSV-file, of course. If its structure is known and "stable", it shouldn't be hard.

UPD. Actually, parsing CSV might be quite hard (in MC).

Leveraging  MC.Utils.FindAndReplace tool halts with error when trying non-overlapping search.  I presume this is the same error as most GREP tools I have tried  ie a non-match ends the forward stepping.
The only tool I found which does this out-of-the-box AFAIK is PowerGREP (https://www.powergrep.com/), this dev does some excellent work.
Unfortunately he's waaaaay out of my price-range esp. for a small personal project.

....But if I can find a tool I can understand like MultiScript, it is something I'd like to learn to do for myself, so all input is appreciated ;)

8
Thanks for your extensive input Jungle  ;)

As you are a MScript maestro that has definitely given me something to work with!   8)
Once I have tried this out I can start filling in any gaps / quirks I encounter.

BTW I was using the CSV as source for the matches & then editing XML with the SAR output. 
This worked OK as the replacements are all contained by the existing XML structure & didn't impact the XML layout. 

9
Thanks for the replies.

@AlanJB
I have looked at Notepad++ but I think dnGREP may be the way to go IF I can figure out the scripting of loops for the system the dev has just implemented....
His code example is
Code: [Select]
set folder C:\Repos\testFiles\test\scriptTest\
set pathtomatch *.cs
set searchfor string
set replacewith String
search
replace
set searchfor bool
set replacewith Boolean
search
replace
  which of course doesn't have an ELSE type loop implemented.  Iteration being what I'm looking for.
 
@Mathias
I'm trying to do a non-overlapping search.

My searches are for different terms which may or may not be in the target files.

eg I have 1000 search terms & each file contains 300 possible matches.
I must SAR for each term but it may not find a match because each file is different.
Thus I need to search all terms for every file & replace as found. 

The search process must continue to run through the list if a search term is NOT matched until it hits the end of the search list. 
The current system you have in Find & Replace only works where every search term is present (overlapping search), a non-match halts the process execution.
Great dialog etc but not suitable for this taskwithout a switch to loop past non-matches... so I wondered about MScript as then I might be able to define loops.

ELSE & IF seem to be script terms for this type of loop but don't know if I can apply them here...

If I must write a script to loop 1500+ terms then I'd like some familiarity/hope of getting it right.

10
So......  I'm guessing no non-overlapping SaR using script or MS rename tools is possible then...  :(

11
Thanks for the reply Mathias.

CSV is original source of search & replace terms; XML is target.  (I just copied CSV columns of data out to the F&R dialog, & gave it xml as target.)
I've listed the 'original operation' with CSV & XML labels as I wondered if MultiScript could handle those formats instead of using F&R for the job.

Basically I can exclude the CSV by transferring all the data to F&R input & output fields.
F&R seeing XML as TXT is not a problem as no formatting is altered. 
It seems to work if all search terms are found. 
So I guess the error must be because there is no 100% match between all CSV terms & all XML targets.

Problem is all XMLs are different i.e. not all terms are in all XMLs.  Because of this I need an EITHER OR function,
EITHER search / find/ replace
OR search / not find
THEN search next term in list
REPEAT til end of list.

I want to be able to step over non-matches or matches that have already been made....  I know this is possible but maybe not via MC.

12
The question is, is the following task beyond the scope of F&R (&/or MS)? 
Basically:-
I have .xml's that need search & replace operations.
I need to check multiple files for each of the entries & replace if/where found.
All SAR terms are not in all files... Both searches & replacements will change over time.  ::)

The source for the search & the replacements is currently a CSV, >1000 rows/entries.
The job is thus:-
Code: [Select]
Search for x where x is entry in CSV column 1;
   If CSV column 1 entry found, replace with CSV column 2 entry;  (Rows being SAR pairs 1|1, 2|2, 3|3 etc)
OR
   If CSV column 1 entry not found;
Step down to next row, loop til end of CSV
Resulting XML to be saved with a new name
Next file

So far in F&R I tried adding all column 1 entries to find & all column 2 entries to replace with "Find many, Replace with many" selected.
Result is error 87 see screen.
I'm guessing this is because there are mismatches & F&R doesn't step down to next term rather than there being too many entries.....?

...........Maybe I can leverage F&R with MS or something?

Any simple way to do this task?  Thanks in advance :)

13
Beta Releases / Re: Version 12 * RC *
« on: August 05, 2022, 16:36:49 »
Ref 12.0 b2901 x64 (Win10)

Had couple of incidents today after updating to this build
1 - right clicked on a file, dialog opened & MC locked completely, rest of system continued normally - killed via TM
2 - inserting a USB stick I have been using this week w/out issue, locked MC up for several minutes, killed/restarted MC & removed/reinserted the stick got round it.  Stick checked out Ok on Win10 diagnostics/repair.

Unusual behaviour for MC so thought I'd mention it.

14
Support and Feedback / Re: Can't get MC.Filesystem.Delete to work
« on: August 05, 2022, 16:27:43 »
Yes I think we're saying the same thing. (But I'm not as clever as you  ;D  )

I was trying to give example that showed its' count included items external to the selected dir... & so
Quote
you can run the command on ".."

15
Support and Feedback / Re: Can't get MC.Filesystem.Delete to work
« on: August 03, 2022, 11:56:17 »
Thanks for the reply Mathias.
FILTER to MC.Explorer.Delete = more complex - I see, just wondered ;)

CMD Reading different dirs:
I repeated this test multiple times because its results are so odd.
Opposite pane was different drive not just different dir...
Whilst wondering why I tried clicking on different areas of the pane before calling the cmd, eg <-... at top; lower empty space; different files/filetypes.
Each time as you can see from the item count it looked at other dirs both above & below. 
Maybe I'll try with more dirs & see where it jumps...

Anyway if you can force a scope lockdown that would solve it, even if it does not explain it :)


16
Tried this again experimentally
D:\test1\test2\
was focus
I added 6 dummy files incl 1 zip & 1 rar to test2, used :-
Code: [Select]
MC.Filesystem.Delete USE_CURRENT_SOURCEITEM FILTER="*.zip; *.rar"
Log output
Code: [Select]
2022-07-31 15:43:36.274 MC.FileSystem.Delete : Parameter USE_CURRENT_SOURCEITEM set. Use current source item as PATH parameter : 'D:\test1\test2\..'
2022-07-31 15:43:36.274 MC.FileSystem.Delete : Scanning folder..
2022-07-31 15:43:36.274 MC.FileSystem.Delete : Found 8 items in path
2022-07-31 15:43:36.274 MC.FileSystem.Delete : 2 Filters found
D:\test1\test2\
was focus again
I added 1 zip & 1 rar to both test1 & test2 & ran button, all were deleted, re item count:-
Code: [Select]
2022-07-31 15:47:22.824 MC.FileSystem.Delete : Parameter USE_CURRENT_SOURCEITEM set. Use current source item as PATH parameter : 'D:\test1\test2\..'
2022-07-31 15:47:22.824 MC.FileSystem.Delete : Scanning folder..
2022-07-31 15:47:22.824 MC.FileSystem.Delete : Found 10 items in path
2022-07-31 15:47:22.824 MC.FileSystem.Delete : 2 Filters found

So I added test3 folder
D:\test1\test2\test3\
Added 2 archives to each test folder: -
With test3 in focus, archives in test 2 & test 3 were deleted
With test2 in focus, only archives in test 3 were deleted, not in 1 or 2  ???

Log shows the command thinks I am in test3 (ran this 3 times with same result, it can't tell my focus is ..\test2\
Code: [Select]
2022-07-31 16:13:51.481 MC.FileSystem.Delete : Parameter USE_CURRENT_SOURCEITEM set. Use current source item as PATH parameter : 'D:\test1\test2\test3'
2022-07-31 16:13:51.481 MC.FileSystem.Delete : Scanning folder..
2022-07-31 16:13:51.481 MC.FileSystem.Delete : Found 5 items in path
2022-07-31 16:13:51.481 MC.FileSystem.Delete : 2 Filters found
So quite interesting...! 

A dialog could be helpful but only if the reason why the command includes other folders in such a surprising way gets caught.  Would adding FILTER to MC.Explorer.Delete be easier?
 
But in any case, don't let this ruin your summer Mathias.  ;)

17
Well thanks for the fun Mathias!  ;)
You got me twice,
1. because I was using the earlier release without the updated function
2. it killed <20 files it found in the directory above the focused one.

No problem as I was able to recover them.  Only lost a zip with all my crypto-currency addresses, but what's $1.6m between friends....   ;D  :P
 ...A few more tests will be needed I think!

18
Thanks for trying to make this function work Mathias.
I have just attempted to use this command.
I get Failed to volume item whenever I use it.
I've tried :-
Code: [Select]
MC.Filesystem.Delete USE_CURRENT_SOURCEITEM FILTER="*.zip; *.rar"
MC.Filesystem.Delete USE_CURRENT_SOURCEITEM "*.zip; *.rar"
MC.Filesystem.Delete USE_CURRENT_SOURCEITEM="*.zip; *.rar"

It does appear to try to action the command, but even with files selected doesn't like something & always gives that error.  ???

19
Thanks for the replies.
I am relieved that I haven't gone completely mad ...even if I did forget to add the build #!   ::) ;D

Thanks for the details Mathias, hopefully the USE_CURRENT_SOURCEITEM parameter will do what I need.  It certainly looks like a good solution.
I will have to run a few tests on dummy files first but if it is being logged it should be OK.

....I always wanted to try juggling hand-grenades so this will be a step in the right direction.   ;)

20
Support and Feedback / Can't get MC.Filesystem.Delete to work
« on: July 28, 2022, 18:02:16 »
So I have a user defined command attached to a button:-
Code: [Select]
MC.Filesystem.Delete FILTER="*.zip; *.rar"But it won't work & I get no error or dialog of any kind.
I've assumed I can only use one command in a button of this type, not multiple as with a script, so I haven't added a select option first, I get the same result with files pre-selected or unselected.
What have I missed.....?   :-\
 

21
Beta Releases / Re: Version 12 * BETA *
« on: June 07, 2022, 22:45:34 »
& I noticed that the tabs - with custom colours now get blacked out randomly.... bug or not?

Hmm not see anything with that. what does it look like?

Hi Mathias,
did you find anything on the tabs issue I have? 
Here are some more examples, 3 screens of the same section of tab bar:-
Mouse cursor position determines color for some tabs, as you can see mousing away reverts others to black & in some cases color changes if selected (red to blue in the attached).
Tabs still showing colors are persistent between MC starts/reboots, the black tabs seem to always be the same & will call color on mouse contact.
I've tried reassigning colors to 'faulty' tabs but the new settings don't have any effect.

No able to recreate that  yet,
Hm wait I think there are a change, If you go in to tab properties you can now define different colors for when tab is active and inactive.
Might be that if that is not configure if does not fallback to the correct color ? So test if it helps to define an color for when tab is inactive

Thanks Mathias.

With b2877 I am able to: - reset to default>apply; change color>apply & it works now.
I can also set active/inactive color options & the settings are retained & persist after restarts.
It may be worth noting that this switch between active & inactive color assignments only works for 'Solid' color.
I believe that the active/inactive drop-down was previously only accessible when 'solid color' was selected, now it is accessible for both schemes.

......But I will now be able to sleep again!   ;D

22
Beta Releases / Re: Version 12 * BETA *
« on: June 04, 2022, 22:24:24 »
& I noticed that the tabs - with custom colours now get blacked out randomly.... bug or not?

Hmm not see anything with that. what does it look like?

Hi Mathias,
did you find anything on the tabs issue I have? 
Here are some more examples, 3 screens of the same section of tab bar:-
Mouse cursor position determines color for some tabs, as you can see mousing away reverts others to black & in some cases color changes if selected (red to blue in the attached).
Tabs still showing colors are persistent between MC starts/reboots, the black tabs seem to always be the same & will call color on mouse contact.
I've tried reassigning colors to 'faulty' tabs but the new settings don't have any effect.

23
Beta Releases / Re: Version 12 * BETA *
« on: May 27, 2022, 22:49:14 »
Thanks for the reply Mathias.

In the screen shot you can see some tabs that are coloured & some are black, they should all be coloured.
They do show colour when the mouse is hovering & on click but return to black one mouse moves away.

PDFs - I'm using W10, & I guessed there should be a preview but the tooltip is pretty big for all that blank space so I thought I better mention it. :)

24
Beta Releases / Re: Version 12 * BETA *
« on: May 26, 2022, 22:58:20 »
Thanks for the new features Matthias. ;)

The enhanced hover tooltip looks good.  Shows a lot of blank space for my pdf's (see attached) but nice preview on jpgs.

See attached - I'm running in Dark mode & I noticed that the tabs - with custom colours now get blacked out randomly.... bug or not?

25
Beta Releases / Re: version 11.3 BETA (Last updated 10-Sep-21)
« on: September 10, 2021, 14:50:51 »
Thanks Mathias! 
A PC without MC is like eating broken glass!  ;D

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