Connecting Tech Pros Worldwide Help | Site Map

Absolute beginner needs help with searching text files

Dave S
Guest
 
Posts: n/a
#1: Oct 6 '05
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


Newbie
 
Join Date: Oct 2005
Location: Australia
Posts: 6
#2: Oct 8 '05

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


Similar Visual Basic 4 / 5 / 6 bytes