Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VBScript to search a text file

Posted on 2011-09-28
3
Medium Priority
?
338 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Recently I finished a vbscript that I thought I'd share.  It uses a text file with a list of server names to loop through and get various status reports, then writes them all into an Excel file.  Originally it was put together for our Altiris server…
Hello again, all.  For those of you that have been following along, you'll know that this is my third article on this topic (though it is not Part III).  This article is sort of remedial, and probably the topic with which I should have started the s…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

636 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