Hello,
I wanted to write a simple VBS Script, that reads through every line of a .txt file, searches for a word, then creates a new .txt file and writes in there every line that
contains that word.
I wrote a script which has runned without producing an error message, but it created no new file. So I tried to create that new empty file manually and hoped it would
write then in there, but it didn't.
Then I wrote another script which creates that new file, but I was not sure how to implement there for what it shall look for and write in the new file.
Obviously my problem is, how to merge the two scripts in a working manner.
But, when I'm already asking here for help, I would expand my expectations what the script should do:
Ideally it should search for a word in every text line and if it finds it, search for 3 other strings, then list in the new file all lines with the word and the first string, create a
second file where it lists the lines with the word and the second string and in a third file the same for the third string.
I will attach the two scripts I have written, so you can see what I've done until and hopefully somebody will help me.
That would be very nice and I thank everyone who has read until here!
Best Regards and Greetings from Germany,
Lobol
EDIT: Obviously I can't attach a .vbs file. So I copy the contents and paste it into .txt files and attach them.




Back to top







