Connecting Tech Pros Worldwide Help | Site Map

Absolute beginner needs help with searching text files

 
LinkBack Thread Tools Search this Thread
  #1  
Old October 6th, 2005, 07:35 PM
Dave S
Guest
 
Posts: n/a
Default Absolute beginner needs help with searching text files

Hello all,
Hope this is the correct group for this question.
I couldn't find a vb beginners group.
I am getting overwhelmed and need some help.
I did this very easily in a batch file (only three lines), but DOS is too
limited and the use of the batch is presenting other problems (file is
compressed so I get garbage characters in the output file which I can't
edit).
I also wanted some other functionality added and decided to try VB6.

Problem - (Totally lost and frustrated)
How do I search all files with a given extension (ex. *.zip) for text inside
those files and output those lines (strings) to a text file?
I need to be able to use wildcards, so from what I read the use of the File
System Object is not going to help me.
The files are compressed (don't know if that matters).
The text lines (strings) in the files I am looking for would be something
like *.bspPK(trailing garbage characters)

Any help will be much appreciated.
Thank you



  #2  
Old October 8th, 2005, 11:13 AM
Newbie
 
Join Date: Oct 2005
Location: Australia
Age: 18
Posts: 6
Default

Searching the files would be quite simple, but you'd need VB to extract the archive(s) first.

Attached is a simple program, which searches a selected file for a string.
The Source Code is Included.

Hope it helps :)

mexxus
Darval Technology
Attached Files
File Type: zip FileSearch.zip (6.9 KB, 1184 views)
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.