10-31-2001, 09:49 AM
I was wondering if it is possible to use a winsock control to connect to an Ip then searce thier comp for a specified file(like Napster and the use the FTP control to download it..
is it possible to search through my own computer for a specified file???
like filefind but programmically??????
10-31-2001, 10:06 AM
I'd assume you'd have to use FTP for that, and of course the target machine would need a FTP server running.
As for find on your own machine, here is a link to the Tutor's Corner for an article (http://www.visualbasicforum.com/bbs/showflat.php?Cat=&Board=tu&Number=20782&page=0&view=collapsed&sb=5&o=a ll&fpart=) that should help you.
10-31-2001, 10:15 AM
The internet transfer control supports the FTP protocol. It is many times
easier than trying to program the FTP protocol using the winsock control.
10-31-2001, 02:32 PM
Ive managed it using winsock. Have one app running on the target comp, one on yours, and bingo - its easy.
Just put a dirbox and a filebox on the target form, then loop through them and read the contents to an array, send the array via winsock as a string, a reassemble it and populate a list view or a listbox at your end.
10-31-2001, 05:49 PM
Which is exactly what a FTP server and client are doing images/icons/smile.gif
11-02-2001, 11:05 AM
thanks...how would I read the contents into an array?
and what is the protocol to search throuh an array for a certain string?
11-03-2001, 06:36 AM
To read through a DirListBox, you treat it exactly as a normal ListBox.
<pre><font color=red>Dim Array() as String
ReDim Array(0 To DirListBox.ListCount) as String
For i = 0 to DirListBox.ListCount
Array(i) = DirListBox.List(i)
</pre></font color=red>Try fiddling with that....