Connecting Tech Pros Worldwide Help | Site Map

Absolute beginner needs help with searching text files

  #1  
Old October 6th, 2005, 08:35 PM
Dave S
Guest
 
Posts: n/a
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, 12:13 PM
Newbie
 
Join Date: Oct 2005
Location: Australia
Posts: 6

re: Absolute beginner needs help with searching text files


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, 1251 views)
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Goodbye Giganews thanatoid answers 2 May 11th, 2006 07:45 AM