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 ... 13 14 15 16 [17] 18 19 20 21
401
Feature Requests and Suggestions / Re: Document reading
« on: August 28, 2013, 19:34:15 »
Good to know there is a way to cycle through it - one of the 1001 things I hadn't discovered yet!   :)

Sumatra & GPL3 - disappointing.  Have to keep looking...

402
Script / Re: Rename & move/copy
« on: August 28, 2013, 13:31:47 »
I see.  That all makes sense.  I can see why the complete 'explorer replacement' path could be a big step code-wise in this case.
That said, at the moment even without bypassing/removing the clutter of Win Explorer you have achieved a great deal. 
I will have to spend more time reading your documentation & see if anything clicks for me.

I guess using Java would increase functionality, & might increase your script user base if it has a common basis of commands & syntax. 
I personally find java apps don't run well on my system.  Not sure why.  Java is present & says 100% but...
I can put the same app in a VM & it will run fine.   
Most common answer I hear is that it is AV related - if so how would the AV react to a java-based MC scripting engine? 





403
Feature Requests and Suggestions / Document reading
« on: August 28, 2013, 13:07:40 »
Couple of requests regarding text reading.

After a string search, I was using the built in viewer (F1) for txt & I found that I couldn't give it multiple txts at once - to open in multiple tabs. 
However it shows the file numbers in the title bar [xx/xx]  Is multi-tab something that is to be added?
The viewer works great for individual files the hi-lites etc are very helpful.  As is the ability for code-page change. 

In terms of the MC development road-map - (I've mentioned adding a preview pane in another thread)
- with a preview pane it's easy to walk through multiple txt files which could overcome the need for multiple tab opening functionality.
- with multiple tabs walking through multiple searched files containing hi-lites is good for ease of processing.
So a very similar outcome for my usage type.


Sumatra PDF has a good support range for various document formats  - http://blog.kowalczyk.info/software/sumatrapdf/free-pdf-reader.html
Might be useful to MC development as they share their code.
http://code.google.com/p/sumatrapdf/

404
Script / Re: Start a Search Automatically
« on: August 27, 2013, 13:39:55 »
This looks like something I need!
Will get on with trying it.   ;)

405
Script / Re: Rename & move/copy
« on: August 27, 2013, 13:38:36 »
Thanks for the detailed response Mathias.

I did a tiny bit of C++ years ago.  I expect a lot has changed.  I didn't do enough to remember much. 
I would quite like to try it again - time permitting.
What kind of things would you describe as plug-ins or extensions?  If I want to attempt that I would need some guidelines to avoid major disasters!  :D

The bug fix may well help me, I am using "" quite a lot. 

Going OT -
When you designed MC script what did you use?  Did you take an existing code library or did you write it directly to hardware code?  (Maybe this is a big question?)
To me, a scripting language seems very ambitious, but also a great way to make something you can tailor to your needs.
I think that dynamic is why I am starting to get more from MC - I can tailor things instead of looking for a tool that may do what I want.

406
Script / Re: Rename & move/copy
« on: August 26, 2013, 14:46:59 »
Thanks for looking at this Mathias. 

I had looked at the docs then at Jungles script (Name as Folder)
Code: [Select]
    $file = $arr[$i];
    $s = PathGetFileExtPart( $file );
    $name = $prefix + "*" + $s;

    $files = FindFiles( $src_path + $name );
    $n = arrayCount( $files );

& thought that I could also give a string variable.  I looked at my code today & realized I'd omitted that bit!  (& probably other things...)

I think you're right about the UI. 
My idea will be best handled by MCs own tools, so I will need to study the MC.<command> features more closely.  That could give me some great automation.
e.g. I like the ability to load the explorer panel filter via a button - "MC.Explorer.SetViewFilter" - is very useful. 
So I need to play with the other commands.

I think that the ideas I had clash between using MC script & taking over parts of the MC UI environment.
I am not 100% sure of boundaries yet. 

I can see DOS .bat type script is cumbersome/weak compared to the MC script, & that the script is out classed by C++ MFC. 
Now I'm learning more about using the right tool for my job.

I think a button script calling MC commands could allow me to -
activate in-line edit
paste in clipboard contents
copy/move

Which might make a useful button. 
Using my new MCscript based buttons has improved my work environment a great deal.


I noticed on the 1481 update today that array processing by functions has changed.  If I understand this correctly it looks like scripting will be quicker & easier.  This will help me move forward in my experiments.

OT - I found a handy free regex tester that anyone wanting to use the MCS regex functions might find useful - http://antix.co.uk/Projects/Regex-Tester  The variables it shows seem fully compatible but I haven't tried them all yet!

407
Script / Re: Rename & move/copy
« on: August 25, 2013, 18:06:28 »
OK thanks Mathias, that will be something I can play with.  :)


I am finding using findfiles for files inside a selected folder difficult.  I can't figure out how to make it search & select inside the selected folder.   That said, it is easier to use the built in search function in this case.  Copying features you already have might be counter-productive to learning something...  :-\

In which case the following is probably irrelevant.

I'm not sure about my syntax - (<arr>,"xxxxx")
Just trying to get the debugger to return the txt match in the folder at this point.  It shows the folder name not the txt inside the selected folder. 

But perhaps this not within the scope of the find command?

This is what I have so far: -

Code: [Select]
@var $arr = GetSourceSelectedPaths();
@var $items = arrayCount($arr);
@var $CurrentNameFullPath;
@var $file
@var $files;
@var $files1;
@var $n = 0;

//find txt

for( $n = 0; $n < $items; $n++ )
{
  $file = $arr[ $n ];
  $files = PathGetFileExtPart( $file );
  $files1 = FindFiles( $files, "*.txt");
}

The upside is I now have several small routines to automate some of my regular tasks. 
Been very interesting so far.   :)

408
Script / Re: Rename & move/copy
« on: August 25, 2013, 17:31:27 »
I thought it might be useful/interesting to call a hotkey via script. 
In this case my idea is probably not sensible.   ::)
No problem.   I'll think about different approaches. 

409
Script / Re: Rename & move/copy
« on: August 25, 2013, 13:50:09 »
Quote
You want to rename a folder and then you also want to rename the subitems in that folder before you move them ?

Yes. 
I want to - 
  • select & update folder(s) name
  • find & select files within the folder(s) matching *.xxx, *.zzz, *.ddd (i.e. match different file types in various folders)
  • rename to match their parent folder.
  • move the parent with updated contents
I still have some hair that hasn't been pulled out  :D

OK, I will attempt to incorporate the findfiles function.

More rename +copy/move
This is an idea for another script for a button. 
This would require the calling of hotkeys & waiting for the correct state of the item.
Specifically -
Can I invoke F2 on a selected item then auto copy/move it to target after the in-line edit has completed?

Best to ask if it is possible before I try to do it!

410
Script / Re: Rename & move/copy
« on: August 25, 2013, 01:35:52 »
Updated
I've replicated the 3 variables sets for each operation & now can have multi-step renaming ops +copy/move.

Had a problem with <str> vs <array> in my Move op when selecting multiple folders but I've figured it out...!

This is the code I've appended for move:-
Code: [Select]
@var $arr3 = GetSourceSelectedPaths();
@var $items3 = arrayCount($arr3);
@var $MoveNameFullPath;
@var $targetPath;
@var $sourceFile;
@var $n3 = 0;

for( $n3 = 0; $n3 < $items3; $n3++ )
{
  $MoveNameFullPath = $arr3[ $n3 ];
  $targetPath = GetTargetPath();
  $sourceFile = $MoveNameFullPath;
 
  MoveFile( $targetPath, $sourceFile );
}

Hopefully my bungling will inspire others to use the scripting tools. 

Now I'm wondering if I can rename files within a folder to match the updated folder name before I move the folder..... :P

411
Feature Requests and Suggestions / Re: Todays wishlist
« on: August 24, 2013, 23:18:04 »
You already have 1 lifetimes work I think!
I wonder how many features there are that I have not found yet? 
Adding lots of 'small' features could be better than 1 'big' feature.
Every user probably wants a unique version of MC, but this is your program & your time/effort so you must follow your inclinations.

I am getting a lot out of using MC (Far more than from other file managers).  Not just improving productivity but also seeing possibilities & adding personalization with colours & script. 

Ultimately I am grateful for the chance to learn with / use MC. 

Thanks for looking at the 'problems'.  ;)

412
Script / Re: Rename & move/copy
« on: August 24, 2013, 23:02:18 »
- why twice -
I wanted to add complexity but keep script components I know work to minimize introducing new problems.
I can imagine a scenario where a regex rename + rename could be useful.
- A logical way to push myself to visualize the way the MC coding uses tokens etc.   :)


I got the 1x regex rename +move to work after a bit of tidying:-

Code: [Select]
@var $arr = GetSourceSelectedPaths();
@var $items = arrayCount($arr);
@var $CurrentNameFullPath;
@var $OrgName;
@var $re = "([0-9]+)_([a-zA-Z]+)_([0-9]+)";
@var $result;
@var $n = 0;

// regex rename
for( $n = 0; $n < $items; $n++ )
{
  $CurrentNameFullPath = $arr[ $n ];
  $OrgName = PathGetNamePart( $CurrentNameFullPath );
  $result = StrRegExpReplace($OrgName, $re, "$3.$2-$1");
 
  RenameFile( $CurrentNameFullPath, $result, "SILENT" );

}

// move

@var $targetPath;
@var $sourceFile;

{
  $CurrentNameFullPath = $arr[ $n ];
  $targetPath = GetTargetPath();
  $sourceFile = $CurrentNameFullPath;
 
  MoveFile( $targetPath, $sourceFile );
}

I am gradually seeing why things operate as they do.  Hopefully I can fix this 2x rename script now & start working on more complex multi-process scripts.

Thanks for the assistance Mathias.  ;)

413
Script / Re: Rename & move/copy
« on: August 24, 2013, 19:59:16 »
Thanks Mathias.
I had wondered if I needed to "apply" one op  before starting another?
 
I think I am still getting my tokens wrong. 
With multiple ops it doesn't update.

Do I need to instruct it to update & continue?  Is it automatic?

If you have time the following is what I've imagined so far!


My goal is 2 rename passes & a move.
I am doing it in steps.  i.e. create 3 working routines then combine them into a single script.

I made 2 (individually working) rename scripts, I combined them & added the resulting script to a button.
It needed to be clicked twice to perform the task.   ???
Am I missing a linking command between the ops to apply both operations consecutively?

This was something like it - (I think my $CurrentNameFullPath is a problem for part 2)
Code: [Select]
@var $arr = GetSourceSelectedPaths();
@var $items = arrayCount($arr);
@var $CurrentNameFullPath;
@var $OrgName;
@var $re = "([0-9]+)_([a-zA-Z]+)_([0-9]+)";
@var $result;
@var $n = 0;

for( $n = 0; $n < $items; $n++ )
{
  $CurrentNameFullPath = $arr[ $n ];
  $OrgName = PathGetNamePart( $CurrentNameFullPath );
  $result = StrRegExpReplace($OrgName, $re, "$3.$2-$1");
 
  RenameFile( $CurrentNameFullPath, $result, "SILENT" );

}
 


@var $NewName;
@var $NewName2;

{
  $CurrentNameFullPath = $arr[ $n ];
  $NewName = PathGetNamePart( $CurrentNameFullPath );
  $NewName2 = StrReplace( $NewName, "." , "-" );
 
  RenameFile( $arr, $NewName2, "SILENT" );
  }




My logic is:-
1. select item
2. rename item
3. rename item (2)
4. select result & move

I've tried just a move op:-

Code: [Select]
@var $arr = GetSourceSelectedPaths();
@var $items = arrayCount($arr);
@var $CurrentNameFullPath;
@var $targetPath;
@var $sourceFile;
@var $n = 0;

for( $n = 0; $n < $items; $n++ )
{
  $CurrentNameFullPath = $arr[ $n ];
  $targetPath = GetTargetPath();
  $sourceFile = GetSourceFocusPath();

  MoveFile( $targetPath, $sourceFile );
}

That also worked on it's own...





414
Feature Requests and Suggestions / Re: Todays wishlist
« on: August 24, 2013, 19:27:22 »
Yes sorry I should remember to call it the MultiRename dialog.  I use that or the F2 inline edit & F2 doesn't bring up a new dialog so I didn't differentiate.   :o
It is MultiRename in both of the above requests - recall & auto-update between passes.
Also -- In MultiRename I notice that a saved regex rename doesn't tick the <regex> box when it is loaded.  Perhaps you can add that to the save function?

I will just try to remember what I'm doing until you get to the Undo phase of development then!  ;D
I can see any undo is a major undertaking, I had imagined this would somehow hook into the logging that you employ in MC.  User selects a log entry & steps back from that - was my thought. 
Given the probable need to group related operations from the log, I guess it's still very complex.

Could a preview pane employ a 3rd party util to save work?  Something like a chunk of Irfanviews' source-code perhaps.  (Assuming the code is able to be shared etc.)


One more for the list -
Debugger - could the view field auto-scroll with the highlight bar?  At the moment it can disappear from view, requiring manual scrolling.  (Too lazy to step, scroll & think ???)


415
Script / Rename & move/copy
« on: August 22, 2013, 17:55:59 »
Having got my regex script to work I wondered about scripting a rename instruction followed by a copy/move instruction to be attached to a button.
This is an attempt to combine my existing code with a few more operations.
Basically I want to select a file; rename according to a pattern; copy/move that file to a new location.
So my script 'should'
a - get selected files/folders
b - run the renaming operation(s)
c - open the copy or move dialog (default transfer to opposite pane).  The destination should be editable as per the 'Find' dialog copy/move operation.  Option for silent copy/move could be useful too.

Is this possible?
I assume I can invoke the copy or move dialog after the renaming & take the updated selected file forward into the copy/move operation.

I can see some possible issues - forcing the selection to update & then taking the 'new' item into the new operation seems like it could be a problem.  Can the script check the item has  1 - updated & 2 - then 'auto' select the new product of the rename operation?


Sorry if this sounds dumb, I'm new to this type of coding & I need to practice something with loops etc to get a better understanding.... ::)

416
Beta Releases / Re: Possible bug
« on: August 22, 2013, 09:36:46 »
Managed to lock the cursor into the find field today - happened after/as I was resizing the columns.
The path field (a long one in this instance) springs back to its' original position when I'm dragging it trying to see the full path, then after a few drags the horizontal lock occurs.
MC 3.3 b1476 x64

417
Feature Requests and Suggestions / Todays wishlist
« on: August 21, 2013, 18:40:32 »
In case these aren't already on the todo list I had a couple of things I'd like to see in MC (& keep forgetting to ask about  ;D)

- recall last rename in the renaming dialog
- save state of find dialog ('open' showing all options or 'closed' with reduced options)
- universal preview pane for 'text' files & images
- Undo function  (Already requested)
- allow rename dialog to update selection allowing several changes without closing/reopening the rename dialog.


418
Beta Releases / Re: 1470 issues and questions
« on: August 21, 2013, 18:19:11 »
Well it had to happen  :)
Guess I overwrote one of the presets & forgot is all the expression juggling...  ::)

419
Beta Releases / Re: 1470 issues and questions
« on: August 21, 2013, 14:03:32 »
 ???  When I first started my script trials I added a script to the drop-down. (see pic)
Thought I'd used F1 to do that ... or has the regex experiment made me crazy?

420
Beta Releases / Re: 1470 issues and questions
« on: August 21, 2013, 00:05:40 »
I don't seem to be able to save scripts in the debugger anymore - New / F1 don't work / greyed-out (3.3 build 1470)

421
Script / Re: Search routine
« on: August 20, 2013, 23:18:39 »
Mathias - Thanks to your comment on C++ regex standards &
http://www.cplusplus.com/reference/regex/match_replace/

I was able to transpose my original regex into a compatible format, the $token & trial & error gave me my desired date mod
10_May_1876  ->  10.May-1876

That + your earlier help on the script writing gave me a handy button for renaming date named folders: -

Code: [Select]
@var $arr = GetSourceSelectedPaths();
@var $items = arrayCount($arr);
@var $CurrentNameFullPath;
@var $OrgName;
@var $re = "([0-9]+)_([a-zA-Z]+)_([0-9]+)";
@var $result;
@var $n = 0;

for( $n = 0; $n < $items; $n++ )
{
  $CurrentNameFullPath = $arr[ $n ];
  $OrgName = PathGetNamePart( $CurrentNameFullPath );
  $result = StrRegExpReplace($OrgName, $re, "$3.$2-$1");
 
  RenameFile( $CurrentNameFullPath, $result, "SILENT" );

}

Switching the match tokens around
Code: [Select]
$result = StrRegExpReplace($OrgName, $re, "$3.$2-$1");allowed
10_May_1876  ->  1876.May-10

Obviously this opens up a great deal of possibilities for the regex function in my script experiments.  (& anyone else who may need to use regexs....)


OT
FYI I don't seem to be able to save scripts in the debugger anymore - New / F1 don't work / greyed-out (3.3 build 1470)

422
Script / Re: Search routine
« on: August 19, 2013, 00:01:05 »
Thanks Mathias.
I got confused with $arr - when it was present the script completed one pass, but not the rest of the selection.  (As you must realize).
So I left $arr in order to get the operation to complete & thus find out which part of the regex would work. 

I started using perl type commands but as you say the StrRegExpReplace function won't allow me to do a 'batch' of separate ops.

Took me a while to see which string was the right one with which to replace $arr.  But I now have a better array usage!
 
This will make changes to multiple selections now (not what I want of course but better from a script point of view.) -

Code: [Select]
@var $arr = GetSourceSelectedPaths();
@var $items = arrayCount($arr);
@var $CurrentNameFullPath;
@var $OrgName;
@var $re = "\w.";
@var $result;
@var $n = 0;

for( $n = 0; $n < $items; $n++ )
{
  $CurrentNameFullPath = $arr[ $n ];
  $OrgName = PathGetNamePart( $CurrentNameFullPath );
  $result = StrRegExpReplace($OrgName, $re, " ");
 
  RenameFile( $CurrentNameFullPath, $result, "SILENT" );
 
  }

I cannot use ( ) within the $re define multiple segments, soI think I would have to do a loop of repeat operations to change each element individually.  Quite frustrating when I can run the regex's I posted in a text editor on text & get the right result.   

Regular Expression Editor (RegExpEditor), amongst others, on sourceforge could be useful for regex types.


Well I guess that is enough headache for one day.   ;)

+++

Update
Thought I'd add the regex I was using to change the date field I mentioned above for clarity.  (I was showing the whole string as regex transpositions instead of in -> out)
10_May_1989 -> 10 May 1989
find -
Code: [Select]
((?:[0-9]+)+)_((?:[a-zA-Z]+)+)_((?:[0-9]+)+)replace -
Code: [Select]
\1 \2-\3
I think I can see a way for each \#<match> for be given its' own instruction.  More headaches req'd.

The main advance for me here is the visualization of matrices in your script.  I was thinking more DOS Basic & linear commands.  Matrix application is more dynamic of course.  So thanks for forcing me down that road.   ;D

423
Script / Re: Search routine
« on: August 18, 2013, 17:33:10 »
Code: [Select]
@var $arr = GetSourceSelectedPaths();
@var $items = arrayCount($arr);
@var $CurrentNameFullPath;
@var $OrgName;
@var $re = "((?:[0-9]+)+)-((?:[0-9]+)+)-((?:[0-9]+)+)";
@var $result;
@var $n = 0;

for( $n = 0; $n < $items; $n++ )
{
  $CurrentNameFullPath = $arr[ $n ];
  $OrgName = PathGetNamePart( $CurrentNameFullPath );
  $result = StrRegExpReplace($OrgName, $re, ".");
 
  RenameFile( $arr, $result, "SILENT" );
 
  }

Seems better - no errors but not renaming.  Will keep trying.

Update
Code: [Select]
@var $arr = GetSourceSelectedPaths();
@var $items = arrayCount($arr);
@var $CurrentNameFullPath;
@var $OrgName;
@var $re = ".A[0-9][0-9]B[0-9][0-9].";
@var $result;
@var $n = 0;

for( $n = 0; $n < $items; $n++ )
{
  $CurrentNameFullPath = $arr[ $n ];
  $OrgName = PathGetNamePart( $CurrentNameFullPath );
  $result = StrRegExpReplace($OrgName, $re, ".");
 
  RenameFile( $arr, $result, "SILENT" );
 
  }

changes
Code: [Select]
"This.String.A02B22.SUBString-ZZZZ" ->  "This.String.SUBString-ZZZZ"...so the regex is definitely not MC friendly....  :'(
I will need to find out how this system handles the 'hungry' (greedy) operation ::)

As it is the regex I have used would match all combos of 1-12-123; 123-1-12; 1234-12-123 etc so it would be handy to transpose this into the MC-friendly form.

OT -
what do I do to access multiple selections?  At the moment this will only do the first of any selected group.  I'm guessing it's related to $n.

Update 2

Code: [Select]
@var $arr = GetSourceSelectedPaths();
@var $items = arrayCount($arr);
@var $CurrentNameFullPath;
@var $OrgName;
@var $re = "\d+";
@var $result;
@var $n = 0;

for( $n = 0; $n < $items; $n++ )
{
  $CurrentNameFullPath = $arr[ $n ];
  $OrgName = PathGetNamePart( $CurrentNameFullPath );
  $result = StrRegExpReplace($OrgName, $re, "x");
 
  RenameFile( $arr, $result, "SILENT" );
}

Will change multiple digits but won't retain the initial sequence
1.23.234
becomes x.x.x

I want to pass the original string back modifying only certain characters. 
As in  eg -
Code: [Select]
((?:[0-9]+)+)_((?:[a-zA-Z]+)+)_((?:[0-9]+)+) ->     ((?:[0-9]+)+) ((?:[a-zA-Z]+)+)-((?:[0-9]+)+)
10_May_1980 -> 10 May-1980

I suspect I'm not going to be able to do this.    :(

424
Script / Re: Search routine
« on: August 18, 2013, 16:47:26 »
I added a couple of screen shots above to help explain what is happening with mass rename & the regex's.
Debug error was row 13 then 14 when I used $Orgname

(I'm no expert I only know enough to cause trouble!) Hungry:- + forces regex engine to keep looking for matches so
Code: [Select]
((?:[0-9]+)+)should find any combination of digits.  Useful for dates etc where you may have 1-12-1980
Code: [Select]
((?:[0-9]+)+)-((?:[0-9]+)+)-((?:[0-9]+)+)should match that sequence.
In your example you predefined the # of digits with [0-9] [0-9], if it works with + you can (in theory!) match more than the 2 digits without defining multiple [0-9]s. 

If I use $Orgname I think I drop part of the sequence which links to $newname, maybe I need to have 2 {....} operations defined, one to run the regex, then the next to take the result & use it to rename.  ???

My bad  - I wasn't thinking replace regex with regex but how the groups would appear as a regex (trying out variations in mass rename & confusing myself!)

Thanks for your time Mathias.

425
Script / Re: Search routine
« on: August 18, 2013, 15:29:31 »
I have begun looking at the MC regex function.
I wonder if this is not an acceptable regex -
Code: [Select]
((?:[0-9]+)+)ie: -  find numbers, can be any number of numerals in a group.
Same for letters
Code: [Select]
((?:[a-zA-Z]+)+)
MC doesn't seem to accept this format. 
I see your example
Code: [Select]
<str> StrRegExpReplace(<str>, <regex>, <replaceWith>, [int startPos] )
example

@var $str = "This.String.A02B22.SUBString-ZZZZ";
@var $re = ".A[0-9][0-9]B[0-9][0-9]."";
@var $result = StrRegExpReplace($str, $re, "XX");
 // result is This.StringXXSUBString-ZZZZ

 - specifies quantity of individual characters.  'Hungry' expression is defined differently in MC?

For my experiment I had been thinking of changing a folder date format, e.g. :-
10-05-1989 -> 10.05.1989
Code: [Select]
((?:[0-9]+)+)-((?:[0-9]+)+)   ->    ((?:[0-9]+)+).((?:[0-9]+)+)or
10_May_1989 -> 10 May 1989
Code: [Select]
((?:[0-9]+)+)_((?:[a-zA-Z]+)+)_((?:[0-9]+)+) ->     ((?:[0-9]+)+) ((?:[a-zA-Z]+)+) ((?:[0-9]+)+)
   
I tried: -
Code: [Select]
@var $arr = GetSourceSelectedPaths();
@var $items = arrayCount($arr);
@var $CurrentNameFullPath;
@var $OrgName;
@var $NewName;
@var $re = "((?:[0-9]+)+)-((?:[0-9]+)+)-((?:[0-9]+)+)";
@var $str = $OrgName;
@var $n = 0;

for( $n = 0; $n < $items; $n++ )
{
  $CurrentNameFullPath = $arr[ $n ];
  $OrgName = PathGetNamePart( $CurrentNameFullPath );
  $NewName = StrRegExpReplace($str, $re, ".");
 
  RenameFile( $arr, $NewName, "SILENT" );
  }

But I get - Error : -23 => Parameter wrong type or in the mass rename - 'invalid characters' msg
I had the regex's working  outside MC - but they don't work in the mass rename or the script (yet)   :-[



Pages: 1 ... 13 14 15 16 [17] 18 19 20 21