Solved

VBScript to search a text file

Posted on 2011-09-28
3
328 Views
Last Modified: 2012-05-12
I'm looking for a VBScript that I can use to search all of my domain computers for a certain text-based file. If that file exists, I'll need for the script to read the text file, search for a specific line, and then output the contents of that specific line to a new text file. Does anyone have such a script that I could modify for my purposes? Thanks.
0
Comment
Question by:mcpp661
  • 2
3 Comments
 
LVL 12

Expert Comment

by:prashanthd
ID: 36719242
Search is very resource intense, would you know the filepath?

Can you give full specifications with sample data, file name etc..
0
 

Accepted Solution

by:
mcpp661 earned 0 total points
ID: 36752508
I already found a file that I modified to my own needs. Thanks anyhow for the response.
0
 

Author Closing Comment

by:mcpp661
ID: 36902310
I found my own solution.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike scripting languages such as C# where a semi-colon is used to indicate the end of a command, Microsoft's VBScript language relies on line breaks to determine when a command begins and ends. As you can imagine, this quickly results in messy cod…
This is an addendum to the following article: Acitve Directory based Outlook Signature (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24950055.html) The script is fine, and works in normal client-server domains…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now