Visual Basic comparing two .txt documents
Laura Brody
laura at hvcomputer.com
Fri Dec 7 07:12:40 PST 2007
Quoting Mike Fedkiw <filepro at adelphia.net>:
> I have an ordering program for my customers to use. They download it from my
> web site. What I am trying to do is have the ordering program match a list
> of images on a web site to their inventory file on their computer and
> download any images they are missing. Everything is set to go but the
> comparing of the two files just takes too long.
>
> I don't want to give them any more programs they have to install for this to
> work. Whatever I use has to be part of the initial program install and
> hopefully not need a DOS window to run in.
I can't do anything about the install of these programs, but
once they are installed, they are now available to you just like
"dir", "more" and "xcopy". No extra DOS windows or anything.
You can call them from your program via a SYSTEM command, then
just read in the result file. Wicked fast and simple.
ie:
iname = "abc123.JPG"
listname = "invy.txt"
system "grep" < iname < listname < "> result.txt"
'read the contents of result.txt and do whatever you need to....
Note - my syntax may not be 100% correct, but you get the idea.
Maybe you can take a look at how the install works and roll it
into your programs install. It is open source and you should be
able to modify things to bypass a separate install if that
really bothers you.
--
Laura Brody
+------------- Hudson Valley Computer Associates, Inc ----------+
| PO Box 859 120 Sixth Street http://www.hvcomputer.com |
| Verplanck, NY 10596-0859 Voice mail: (914) 739-5004 |
+------ PC repair locally, filePro programming globally --------+
More information about the Filepro-list
mailing list