The MASM Forum

Miscellaneous => The Orphanage => Topic started by: stoo23 on December 09, 2024, 07:23:38 AM

Title: Finding Specific text strings
Post by: stoo23 on December 09, 2024, 07:23:38 AM
Hey guys, I have a need to find some Specific text strings, that also contain some numbers and a Symbol or two,... in a Whole bunch of Files and Folders.

I'm trying to find Words & Statements, that relate to a Programs installation default settings, so they can be changed, without having to open every file in every folder and searching them, to find which file contains the specific words.

Is there or has there been a program that can achieve something like that ever posted here that you are aware of ??

Thanks, in advance  :smiley:
Title: Re: Finding Specific text strings
Post by: NoCforMe on December 09, 2024, 08:18:20 AM
Sounds like you need a text-search utility that uses regular expressions.
Sorry, don't have anything specific to recommend, but I do know they exist.
If I find something I'll pass it along.
Title: Re: Finding Specific text strings
Post by: zedd151 on December 09, 2024, 08:19:42 AM
Seems you need something that has text search with multiple wildcard characters, and  :tongue: multiple search terms as well?

I use a program called "Everything.exe", it not only searches for files by file name, but also searches for strings within the contents of files. Partial input file names are ok, even if only an extension, or even searches all files within a given directory for given strings, including non text based files.

https://www.voidtools.com/support/everything/ (https://www.voidtools.com/support/everything/)
https://www.voidtools.com/downloads/ (https://www.voidtools.com/downloads/)

For the functionality you desire, click on "Search", then "Advanced Search" on the Menu bar. A dialog box will open, for advanced searching functionality.

Writing such a program is beyond my humble skills.  :tongue:  my simple search functions are fairly trivial affairs, but not what you need.

Are you sure the strings you need are in some file? (.ini or other) and not in the windows registry? (regedit.exe)

Title: Re: Finding Specific text strings
Post by: NoCforMe on December 09, 2024, 08:55:09 AM
Here's one regular-expression text finder I found for Windows (https://dngrep.en.lo4d.com/windows).
Basically an implementation of the Unix "grep" command.
Haven't tried it, but it should be able to find what you're looking for in any number of files.
Title: Re: Finding Specific text strings
Post by: Biterider on December 09, 2024, 09:16:45 AM
Hi stoo23
GrepWin is the best tool I have found and I have been using it for years.
It also supports regex search.

https://github.com/stefankueng/grepWin/releases/tag/2.1.7 (https://github.com/stefankueng/grepWin/releases/tag/2.1.7)

Regards, Biterider
Title: Re: Finding Specific text strings
Post by: stoo23 on December 09, 2024, 09:29:48 AM
Hey, thanks guys  :smiley: I'll have a look at those.

What I'm looking for Won't be stored in the Windows Registry, as the program, is installed on a dedicated Linux VPS  :tongue:  :smiley:
I DO have all the files & Folders stored locally, so Can use Windows progs' to search with.

I'm simply trying to find (and change) the apparent default installed ownership of a program, I initially setup to test and show to a friend to see if it suited, (which it did) ... an E-Commerce programme and it has started arguing with us, when we are very close to finalising it and setting up the Payment modules etc,..

It still thinks it belongs to ME and is also referring to the original Domain and server name etc.
The details are Not in the DB and Must be stored in a 'config' file somewhere.

I AM in communication with the Programme Support humans,.. but they are French .... and I don't know what it is,... but I had some serious issues a few years back, with another French software company that simply decided to drop all support for their programme, a few months after releasing a serious upgrade .... but didn't bother to tell anyone,... lol

My current concern, with these new people started when, they informed me they had sorted my problem and asked how well they did and was I satisfied etc !!?? WTF ??? we had not had any communication, since my initial support request !!

Since re-establishing my Need to sort these issues out, they have repeatedly asked for the same information 4 times !! ... like I have not supplied it ??

Hopefully they will get back to me after their weekend ends  :smiley:
So frustrating and quite obviously, a simple Configuration / Data problem.

Perhaps it would be better if I spoke fluent French,.. LOL  :rolleyes:  :biggrin:
Title: Re: Finding Specific text strings
Post by: zedd151 on December 09, 2024, 10:17:29 AM
Quote from: stoo23 on December 09, 2024, 09:29:48 AMWhat I'm looking for Won't be stored in the Windows Registry, as the program, is installed on a dedicated Linux VPS  :tongue:  :smiley:
Maybe be better to use a  linux based program then?

QuoteI DO have all the files & Folders stored locally, so Can use Windows progs' to search with.
You can try it, it couldnt hurt. But will obviously only be fruitful if you do indeed have the file where the info is stored, and it is not encrypted, which is possible, due to it being 'sensitive' data. Only way to find out is to try...

Quote... ...
Perhaps it would be better if I spoke fluent French,.. LOL  :rolleyes:  :biggrin:
:tongue:  :rolleyes:  :biggrin:  :joking:
Title: Re: Finding Specific text strings
Post by: stoo23 on December 09, 2024, 10:34:43 AM
Well, it is Our server, set up specifically for this and the files I have are a complete Backup  :smiley:

Hmmm, well the information I was looking for Was found .... but is sadly 'scattered' across oh so many files,.. sigh ... :(

Will have to wait and see what the French Support humans offer as a solution :(
Title: Re: Finding Specific text strings
Post by: NoCforMe on December 09, 2024, 11:47:25 AM
So what did you use to find all those scattered files?
Title: Re: Finding Specific text strings
Post by: stoo23 on December 09, 2024, 01:55:19 PM
GrepWin, eventually .... I tried DnGrep but for some reason it didn't like my Win7 Pro machine and it returned an Error dialogue stating it had not installed correctly ??
Title: Re: Finding Specific text strings
Post by: zedd151 on December 09, 2024, 01:59:42 PM
Quote from: stoo23 on December 09, 2024, 01:55:19 PMGrepWin, eventually .... I tried DnGrep but for some reason it didn't like my Win7 Pro machine and it returned an Error dialogue stating it had not installed correctly ??
Try the portable version. Seems to work here on Windows 7 64 bit.

https://github.com/stefankueng/grepWin/releases/download/2.1.7/grepWin-x64-2.1.7_portable.zip (https://github.com/stefankueng/grepWin/releases/download/2.1.7/grepWin-x64-2.1.7_portable.zip)


edit: I also tested the 64 bit msi installer, which also works for me.
Do you have an antivirus software installed, possibly interefering with installation?
Title: Re: Finding Specific text strings
Post by: stoo23 on December 09, 2024, 02:03:27 PM
NO GrepWin worked fine, the version you just provided the link for, was what I used.

DnGrep was a problem.
Title: Re: Finding Specific text strings
Post by: zedd151 on December 09, 2024, 02:04:29 PM
Quote from: stoo23 on December 09, 2024, 02:03:27 PMDnGrep was a problem.
Oh, ok. I misunderstood.  :sad:
So, you are all sorted? Did you fix your issue?
Title: Re: Finding Specific text strings
Post by: NoCforMe on December 09, 2024, 02:19:36 PM
Quote from: stoo23 on December 09, 2024, 01:55:19 PMGrepWin, eventually .... I tried DnGrep but for some reason it didn't like my Win7 Pro machine and it returned an Error dialogue stating it had not installed correctly ??

I downloaded it and got it to run, but not without some problems. It installed OK, then came to a dialog with a "Launch DnGrep" checkbox that was checked. When I clicked OK, it then went back to the installation wizard for some reason; when I cancelled that I was left with an error dialog on the desktop. However, the program did run.

I don't think this product is ready for prime time yet. Plus it didn't offer to create any shortcuts, so now I have to search through my Program Files (or Program Files (x86) ) folders to find the damn thing in order to use it. I hate that. Hey, guys, this is 2024, not 1995!

Oh, and to see what errors occurred they want me to look at fucking XML file?!?!?!? Fuggedaboutit ...
Title: Re: Finding Specific text strings
Post by: Biterider on December 09, 2024, 06:15:20 PM
Hi Stoo23
Just one thing, make sure you are using GrepWin version 2.1.7 or higher. 
Earlier versions had problems while replacing.

Biterider
Title: Re: Finding Specific text strings
Post by: jj2007 on December 09, 2024, 06:47:38 PM
Quote from: stoo23 on December 09, 2024, 07:23:38 AMHey guys, I have a need to find some Specific text strings, that also contain some numbers and a Symbol or two,... in a Whole bunch of Files and Folders.

I'm trying to find Words & Statements, that relate to a Programs installation default settings, so they can be changed, without having to open every file in every folder and searching them, to find which file contains the specific words.

Can you give an example?
Title: Re: Finding Specific text strings
Post by: stoo23 on December 10, 2024, 08:39:46 AM
Yeah,.. sorry for the delay.

I was trying to find the Install defaults I had used initially.
The initial Account was registered to myself, with My details and I had used one of Hutch's previous Domain names, simply as it was available (and my friend had yet to register her New Domain name) and this process was, initially, just a look and see, Test, that transformed into, it's great, let's keep it :)

I was (perhaps falsely) led to believe, that after We changed the Domain name and Transferred the Account to my friend,.. all would be OK,... sadly, this has proven to NOT be the case !!

Examples:
masmcode, DC_Test_1, Stoo23, my email address, therefore '@'

As an example of the 'Scattering', for 'masmcode' alone, there are 17, 543 references in 50 files !!!

I honestly can't wait to hear back from the French support people  :smiley: