51
Beta Releases / Re: v13.0 **BETA**
« on: November 13, 2023, 22:29:39 »
Thanks for the explanation Mathias.
Any ideas about failure to shut down properly on Win11?
Any ideas about failure to shut down properly on Win11?
MultiCommander v15.8 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.

)




* 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
)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).


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.

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
)you can run the command on ".."


MC.Filesystem.Delete USE_CURRENT_SOURCEITEM FILTER="*.zip; *.rar"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\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

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...!


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"

MC.Filesystem.Delete FILTER="*.zip; *.rar"But it won't work & I get no error or dialog of any kind.