I've been given a task to write a script using VBScript, a language that I know not a darn thing about, to take 3 different strings or string collections and insert them into various places within all files in a given directory.
I've downloaded the Windows Script Documentation after reading several posts in this forum, but I'm afraid that I haven't yet found what I need to complete this task.
Essentially, this is what I need to do - open each file as a text stream, find a string within the file, insert a new string on a new line, and then do two more "search and insert" methods to repeat that behavior, and then save the file and move to the next one in the directory.
I've found how to either read or write to a file but not both within the same file. If there's some part of the Windows Script Documentation that you could point me to, that would be hugely helpful, especially if it contains some examples for me to model my code after.
Thanks!!!!!
I've downloaded the Windows Script Documentation after reading several posts in this forum, but I'm afraid that I haven't yet found what I need to complete this task.
Essentially, this is what I need to do - open each file as a text stream, find a string within the file, insert a new string on a new line, and then do two more "search and insert" methods to repeat that behavior, and then save the file and move to the next one in the directory.
I've found how to either read or write to a file but not both within the same file. If there's some part of the Windows Script Documentation that you could point me to, that would be hugely helpful, especially if it contains some examples for me to model my code after.
Thanks!!!!!