FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Multiple Text/String Replacer Tool (https://fileforums.com/showthread.php?t=99969)

vollachr 05-01-2018 05:19

Multiple Text/String Replacer Tool
 
1 Attachment(s)
Hi,

I'm here to introduce you to a new little tool I created, to be honest, I got the idea from helping KaktoR via PM with something, so I guess some thanks goes to him.

Anyway, back to the topic at hand...

VR Multiple Text/String Replacer

https://vignette.wikia.nocookie.net/...ce/MTSRv3a.png

It is a simple and very small tool.

It allows you to easily search and replace multiple text lines or text strings in multiple files and replace them with another, simple right?!

Of course it is, yet I couldn't find a tool to do that, so I've created one with a batch script.

Please Note: The tool will only work on Windows operating systems that have Powershell installed and available.

For a more complete information, please visit the tool's WiKi Page

You may ask what can this tool be used for, well, for once, let's say you're making a conversion using CIUv2, you want to change the selected font color for all buttons to the same color, all you need is to input the parameters into the MTSR tool INI file and let it make the changes for you, no more need to scroll through the Setup.ini and look for all instances, possibly missing one.

This is of course only one example, it can be used for a lot of other things, conversion related or not.

Hope you like it, the tool comes bundled with a text file usage instructions.

Program Name: VR Multiple Text/String Replacer
Scripting Language: Batch
Creator: VollachR
Version: 1.2
Release Date: January 5th 2018
Latest Update: January 7th 2018

Version History:

Version 1.2
Quote:

  • Changed variable OriginalText in INI files to OldText
  • Now displays version number in the in-console title (not just the window title)

Version 1.1
Quote:

  • First Public Release

Version 1.0
Quote:

  • Initial Pre-Release


Download available on the WiKi or as an attachment to this post.

Enjoy!

JustFun 05-01-2018 08:24

Nice tool, but tbh Notepad++ does more than great job with this for me, but idea and tool is more than welcome. Nice to see someone else needing this lol, I thought I was the only one replacing multiple strings. :D

KaktoR 05-01-2018 08:47

A quick conversion tool for old -> new Setup.ini would be great too.

Mini 05-01-2018 09:33

http://fart-it.sourceforge.net/

vollachr 05-01-2018 12:39

Quote:

Originally Posted by KaktoR (Post 465558)
A quick conversion tool for old -> new Setup.ini would be great too.

I haven't done conversions in a long while so I'm not sure what the differences are but I can look into it, if you can pm me any relevant information it will really help.

Theoretically though, it shouldn't be too hard to adjust this tool and create what you want.

vollachr 06-01-2018 03:33

Quote:

Originally Posted by JustFun (Post 465556)
Nice tool, but tbh Notepad++ does more than great job with this for me, but idea and tool is more than welcome. Nice to see someone else needing this lol, I thought I was the only one replacing multiple strings. :D

Yeah, notepad++ can handle replacing multiple instances of the same text/string in a file, but I haven't seen an option to replace multiple text/strings in multiple files at the same time in Notepad++, nor in any other tool for that matter.

My new tool makes that possible, all you need to do is make sure all the files you want to edit are in the same folder as the tool and set the .ini files in the [Settings] sub-folder correctly, the tool will do the rest automatically in a matter of seconds.

Anyway, I appreciate the comment.

Hope the tool makes someone life a little easier.

78372 07-01-2018 02:23

Find and Replace
 
1 Attachment(s)
Something made in 5 minutes of time based on your idea, but single text replacer.
Commands:

far.exe filename oldtext newtext

Make sure the filesize is not more than 100mb, it may cause bugs.
Thanks to vollachr for the idea.

vollachr 07-01-2018 04:12

Updated the tool to V1.2, see OP for details.


All times are GMT -7. The time now is 10:32.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com