Jump to content
Sign in to follow this  
TreatJ

Find Text in Files

Recommended Posts

Attached to this post is a Windows 10 Zipped File that contains a Text Finding program.

I coded, tested and compiled it on Windows 10 Home / 64-bit OS... I have not tested it

on any other version of Windows (ex... Win7, 8.0, 8.1). Will not work on x86 (32-bit). Just

download...unzip... and place main folder "TxtFinderV475" on any drive you like... Then

just double click on "TxtFinderV475.au3" ... Creating a shortcut to it works very well. I

have done alot of debugging but I am not perfect... If anyone finds any issues with it

please let me know! Thanks

Note: Would recommend compiling the script...Compile (x64)... I use:

SciTE
Version 4.1.2
    Feb 13 2019 23:07:51
by Neil Hodgson.
 Updated by Jos

 

TxtFinderV475.zip

Edited by TreatJ
Needed to upload newest version of program

Share this post


Link to post
Share on other sites

Don't post executables, as I believe any sensible user won't download and run an executable with just your word that "it's safe".

Instead post only source code: this forum is about "sample scripts", not "random binaries".

Edited by jchd

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Yeah, only the binaries are a problem.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

The source file was included... I compiled it using SciTE
Version 4.1.2
    Feb 13 2019 23:07:51
by Neil Hodgson.
 Updated by Jos

 

I will pull the exe out ... zip it again and repost...

 

Edited by TreatJ
Program remove from here... New one is in first posting

Share this post


Link to post
Share on other sites

@TreatJ,

Fine.

Another point: maybe you should rather focus on x86 since that can run on any OS.
 


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Good point... One of the reasons I wrote it for 64-bit was because I was having a problem with

Malwarebytes Ver: 3.8.3 detecting my compiled exe as malware! From what I read as well I

understood that 64-bit was more used today then 32-bit (x86)... also... this is just a hobby.. I

wrote this for my wife so that she could quickly  find info that she likes to keep in one of her

many notepad files! Anyway... It would not be hard to do some re-coding in my source script

to enable it to work in 32-bit (x86)...

Share this post


Link to post
Share on other sites

I forgot to add that originally i did have it written to work in x86.... and because of problem

I stated before... I re-wrote it in x64... but like i said... it would not be hard to recode it back

to working in x86 mode

Share this post


Link to post
Share on other sites

so I am trying to remove my first attachment (the one with the exe in it) How do I do that?

.... All good... edited my first post and attachment!

Edited by TreatJ

Share this post


Link to post
Share on other sites

Edit the first post. Once you have a post count > 10 (I guess) you can do that; this limit is there to limit misconduct from newbies.  Else, ask a moderator to raise the flag for you.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

@TreatJ, somehow this code came at the right time. I will test it out as I need something like this in my projects. 

BTW, @jchd is right, just to reiterate, having binaries, in today's day and age is not a good idea, especially if we can compile the script using the same software you use.

You can also use the <> to paste your code into the forum so you don't have to keep on uploading an archive file every time you make changes. 


Kind Regards
Skeletor

"I need coffee to turn me back to a human"

Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen

Share this post


Link to post
Share on other sites

Thanks for sharing. Ordering your include statements to be visually appealing is a very addictive practice... Even if there's only 2 includes in my script, they have to be ascending in order of length 🤣

Share this post


Link to post
Share on other sites

I sort them alphabetically, not according to length.. lol

You could have just wrapped windows Find util that comes with windows instead of relying on sqlite and dlls and whatnots, or you could wrap a unix util grep, now that would be perfection.... see paid product BareGrepPro, it's just a windows version of grep--and grep has always supported regular expression searches--which rule. BareGrep is wicked fast, written in C++ as well.

however, still a cool util you have made! Bravo!

 

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
On 8/29/2019 at 2:04 AM, Skeletor said:

@TreatJ, Impressive... most impressive.

One suggestion, get rid of the nagging pop-ups. 

Thanks.. So the nagging pop-ups?... you mean the splash windows?...

If that is so... you can just remove them...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...