Is it possible to ....

lmb2001
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..
......
P.S.
is it possible to search through my own computer for a specified file???
like filefind but programmically??????

Banjo
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.

Thinker
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.

ChiefRedBull
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.


Chief

Banjo
10-31-2001, 05:49 PM
Which is exactly what a FTP server and client are doing images/icons/smile.gif

lmb2001
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?

lmb2001
11-02-2001, 11:07 AM
wheres the link??????

Banjo
11-02-2001, 01:33 PM
Works fine for me!?

ChiefRedBull
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)
MsgBox Array(i)
Next i

</pre></font color=red>Try fiddling with that....


Chief

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum