|
-
Mar 28th, 2001, 11:36 AM
#1
Thread Starter
Fanatic Member
I have two file list boxes that I'm trying to compare the file names and add the like names to a ListBox. Can someone help me with looping thru these two file list to check for matches. I;ve gotten it to sort-of work a couple of times but no cigar yet.
Any help is appreciated.
JO
-
Mar 28th, 2001, 11:48 AM
#2
Frenzied Member
try like this :
Code:
Private Sub Command1_Click()
If File1.FileName = File2.FileName Then
List1.AddItem File1.FileName
End If
End Sub
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Mar 28th, 2001, 11:49 AM
#3
Frenzied Member
hope that help i tryed it and it seemed to work. Tell me if thats whart you wanted
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Mar 28th, 2001, 11:59 AM
#4
Thread Starter
Fanatic Member
Yes that works, but that only tests the first file in the filelist. I need a way to test all the files.
Thanks,
JO
-
Mar 28th, 2001, 12:15 PM
#5
Frenzied Member
i dont know how to do that but ill try to find out and Are you trying to do like a napster cleanup program ? If the fil names are the same you know which ones are right .
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Mar 28th, 2001, 12:31 PM
#6
Thread Starter
Fanatic Member
I have several directories that the files change from week to week. Each directory can have as many as 400 to 600 files in it at a time. It is not easy for me to go thru all those files looking for duplicate files. So I was trying to add something to an exsisting program I have so I can choose two directories and have it loop thru all the files, find duplicates, and put the duplicates into a listbox. I have all of this set up except I don't know how to loop thru two directories at the same time.
Thanks for your help,
JO
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|