I have a folder save here: C:\MyFiles
And in that folder I have a few .txt files.
I am looking to see what would be the best way to open each .txt file in that folder and search for the value Error or Warning and then when it does it must tell me what files do contain those words.
What would be my best option? To create a Stored Procedure with t-sql to do this? or To create a .exe with C# or VB.net code.
Anyone have an example for me to look at to get started?
I ended up creating a BAT file using this command.