Set objLogFile = objFSO.CreateTextFile('LogFile.txt') Set objFSO = CreateObject('Scripting.FileSystemObject') Is there a way to have my string searches work consistantly? Let me know if you can assist. Even though the file is on the systems and the first part of the script writes this to the logfile, my InStr function isn't working and not reading this from the file. For example in the script, the first string to search is Test1.exe. Everything appeared to work fine, but then I noticed it would inconsistantly work or not work. I'm using this exit code for reporting in Altiris Notification Server. Then the script reads the numbers in that file and sets a variable to the numbers read, then uses that variable as the exit code. Then the script opens the text file with the file names, and if it finds the particular string in the file, writes a cooresponding number to another text file. ![]() ![]() Basically, it's looking for the existence of the filenames listed in the array, writes the file names that are found into a text file. I was looking for assistance with an issue Im having with a script trying to read strings in a text file.
0 Comments
Leave a Reply. |