Renaming two files in a folder/subfolder structure
Hello,
I want to rename only the following two files that exist in many folders and subfolders:
RouteProperties.xml => RouteProperties.xml.LSoff
MainContent.ap => MainContent.ap.LSoff
I would also like to rename the new name back to the original name.
Strangely enough, I am unable to do this using the 'replace' or 'replacement list' method.
I have tried to do this after saving both methodlists like LSoff-ON.aren and LSoff-OFF.aren
with two method lines 'Replace' for both files and separate with the method 'Replacelist' also with the mentioned two files.
What am I doing wrong and what is a good solution for this?
Thanks in advange for a solution.
I want to rename only the following two files that exist in many folders and subfolders:
RouteProperties.xml => RouteProperties.xml.LSoff
MainContent.ap => MainContent.ap.LSoff
I would also like to rename the new name back to the original name.
Strangely enough, I am unable to do this using the 'replace' or 'replacement list' method.
I have tried to do this after saving both methodlists like LSoff-ON.aren and LSoff-OFF.aren
with two method lines 'Replace' for both files and separate with the method 'Replacelist' also with the mentioned two files.
What am I doing wrong and what is a good solution for this?
Thanks in advange for a solution.
Reply to #1:
Hi Jaap,
Not sure what the problem is; I can do it just as you say with two replace methods. Make sure the "Apply to:" fields are set for "Name and extension"?
If that's not the problem a screenshot or two might help... also what exact result you get, i.e., "nothing happens" or "one file gets changed but not the other" or "they're changed, but it's not correct"...
I'm assuming you are specifying "Add the files in the folders" and "Include subfolders" when you load the files (by dragging directories).
Best,
DF
Hi Jaap,
Not sure what the problem is; I can do it just as you say with two replace methods. Make sure the "Apply to:" fields are set for "Name and extension"?
If that's not the problem a screenshot or two might help... also what exact result you get, i.e., "nothing happens" or "one file gets changed but not the other" or "they're changed, but it's not correct"...
I'm assuming you are specifying "Add the files in the folders" and "Include subfolders" when you load the files (by dragging directories).
Best,
DF
Reply to #2:
Hello DF,
The Apply to fields where set to 'Name and extension.
I want to replace the files RouteProperties.xlm to RouteProperties.xls.LSoff and MainContent.ap
to MainContent.ap.LSoff
When I drag or select the root folder all correspondending files that end with .xlm or .ap are shown,
but the part before teh extension is ignored, so many other files that have the same suffix are shown.
How can this ignoration exist? Yes the wanted replacement for the Route... and Main... files give the text 'Extension is changed' and the not wanted files are not changed with the error text 'OK'
The screenshots:
https://postimg.cc/gallery/dqsHC71
[url=https://postimg.cc/t17s3qph][img]https://i.postimg.cc/t17s3qph/Method-1.png[/img][/url]
[url=https://postimg.cc/cK6vRx0R][img]https://i.postimg.cc/cK6vRx0R/Method-2a-and.png[/img][/url]
[url=https://postimg.cc/4KMmwDxn][img]https://i.postimg.cc/4KMmwDxn/Method-2b.png[/img][/url]
Hello DF,
The Apply to fields where set to 'Name and extension.
I want to replace the files RouteProperties.xlm to RouteProperties.xls.LSoff and MainContent.ap
to MainContent.ap.LSoff
When I drag or select the root folder all correspondending files that end with .xlm or .ap are shown,
but the part before teh extension is ignored, so many other files that have the same suffix are shown.
How can this ignoration exist? Yes the wanted replacement for the Route... and Main... files give the text 'Extension is changed' and the not wanted files are not changed with the error text 'OK'
The screenshots:
https://postimg.cc/gallery/dqsHC71
[url=https://postimg.cc/t17s3qph][img]https://i.postimg.cc/t17s3qph/Method-1.png[/img][/url]
[url=https://postimg.cc/cK6vRx0R][img]https://i.postimg.cc/cK6vRx0R/Method-2a-and.png[/img][/url]
[url=https://postimg.cc/4KMmwDxn][img]https://i.postimg.cc/4KMmwDxn/Method-2b.png[/img][/url]
Reply to #3:
I'm sorry Jaap, but I still don't understand. It looks like (first screenshot, last image) ARen is doing just what you asked: ignoring non-conforming files and changing the files you want changed. What am I missing?
If it's just a case of getting ARen to ignore files you don't want to see, try using this regular expression in the "regular expression match:" field when you drag the folder:
(RouteProperties|MainContent)\.(ap|xml)\.LSoff
for ending in "LSoff", or
(RouteProperties|MainContent)\.(ap|xml)
for adding LSoff.
https://drive.google.com/file/d/1UyMIvKgSv7F5UqYY8xFqIAEhDje ItAiJ/view?usp=sharing
Good luck,
DF
I'm sorry Jaap, but I still don't understand. It looks like (first screenshot, last image) ARen is doing just what you asked: ignoring non-conforming files and changing the files you want changed. What am I missing?
If it's just a case of getting ARen to ignore files you don't want to see, try using this regular expression in the "regular expression match:" field when you drag the folder:
(RouteProperties|MainContent)\.(ap|xml)\.LSoff
for ending in "LSoff", or
(RouteProperties|MainContent)\.(ap|xml)
for adding LSoff.
https://drive.google.com/file/d/1UyMIvKgSv7F5UqYY8xFqIAEhDje ItAiJ/view?usp=sharing
Good luck,
DF
Reply to #4:
Hello DF,
Thank you for replying, but I have tried adding the regular expression as well with the method 'Replace' and 'List replace' but the screen keeps empty.
Removing the regular expression, all files with suffix . xml or .ap are shown and for the files that match 'RouteProperties.xml' or 'MainContent.ap' the suffix is changed, while the other files keep the suffix .xml or .ap
The question is, why is the parts before the suffix are IGNORED in both methods?
Am I misinterpreting the operation, or is this a possible bug?
A solution to remove the files mentioned in the above line is to use the menu item
Remove special => Remove unchanged items
Screenshots:
https://postimg.cc/gallery/gwBFjX2
https://i.postimg.cc/JGFH9NGF/Add-items.png
https://i.postimg.cc/Vdh03qdG/Method-List-replace.png
https://i.postimg.cc/9rkwvdrg/Method-replace.png
Thanks for helping me,
Jaap
Hello DF,
Thank you for replying, but I have tried adding the regular expression as well with the method 'Replace' and 'List replace' but the screen keeps empty.
Removing the regular expression, all files with suffix . xml or .ap are shown and for the files that match 'RouteProperties.xml' or 'MainContent.ap' the suffix is changed, while the other files keep the suffix .xml or .ap
The question is, why is the parts before the suffix are IGNORED in both methods?
Am I misinterpreting the operation, or is this a possible bug?
A solution to remove the files mentioned in the above line is to use the menu item
Remove special => Remove unchanged items
Screenshots:
https://postimg.cc/gallery/gwBFjX2
https://i.postimg.cc/JGFH9NGF/Add-items.png
https://i.postimg.cc/Vdh03qdG/Method-List-replace.png
https://i.postimg.cc/9rkwvdrg/Method-replace.png
Thanks for helping me,
Jaap
Reply to #5:
Hi forum members,
Has anyone a suggesties or solution for my issue?
@Kim: can you help me?
Hi forum members,
Has anyone a suggesties or solution for my issue?
@Kim: can you help me?