Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mastermindg

    Read line when string is matched

    Pardon my ignorance. I figured it out. I modified my regex statement so that it took into account variable values: objRegEx1.Pattern = "maxconnect.+?\x22$
  2. mastermindg

    Read line when string is matched

    So, I've got a script that reads multiple config files for matches (maxconnection) and then outputs if it found a match or not. I want to visually confirm the match to verify settings in the file: <add address="*" maxconnection="2" /> This should output as...
  3. mastermindg

    Search machine.config's

    Thanks for that. It does make more sense to use the folder name rather than path. I was going to create an if...else statement to handle different path lengths but this is so much simpler.
  4. mastermindg

    Search machine.config's

    I figured it out, I wasn't accounting for all the characters in the path: Set filesys = CreateObject("Scripting.FileSystemObject") Set winPath = filesys.GetSpecialFolder(0) strPath = winPath & "\Microsoft.NET\Framework" Set folder = filesys.GetFolder(strPath) Set sfolder = folder.SubFolders...
  5. mastermindg

    Search machine.config's

    OK, this is what I have so far: Set filesys = CreateObject("Scripting.FileSystemObject") Set winPath = filesys.GetSpecialFolder(0) strPath = winPath & "\Microsoft.NET\Framework" Set folder = filesys.GetFolder(strPath) Set sfolder = folder.SubFolders For Each f1 in sFolder If...
  6. mastermindg

    Search machine.config's

    I have created a script that successfully searches a single text file and outputs a regex match. What I am need assistance with is searching MULTIPLE text files in .NET Framework directories, rather than creating multiple statements for each possible iteration.
  7. mastermindg

    Search machine.config's

    This is similar to this post: http://www.tek-tips.com/viewthread.cfm?qid=1168363&page=1 I've written a script that will search a machine.config for various strings. It has just occurred to me that there might be varying installs of .NET Framework. This is what I need to do: Search under...

Part and Inventory Search

Back
Top