Set objFSO = CreateObject("Scripting.FileSystemObject") I changed the #'s in the file and it makes changes regardless. Here is what I have so far and it works good if it finds the first request but I know it is not working right. Note: The zero " 0" and " 1" is what relates the strings. 1.product)ĭ.1.enabled=true (Note the 1 between jre. If it doesn't find the first string above, it would go on to look for:ĭ.1.product=1.6.0_29 (Note the 1 between jre. Then exit if it found and made the changes. If this string exists then I need it to search for the following string:ĭ.0.enabled=true (Note the 0 between jre. Search deployment.propeties file for the following string:ĭ.0.product=1.6.0_29 (Note the 0 between jre. I am attempting to write a vbscript that will search a file for a certain string and if found then look for another string and replace the string with text.
0 Comments
Leave a Reply. |