Will anyone make a project in vb, that searches through the a whole ftp server for a file, and returns the location of the file.
And then reply this post with the project zipped?
Printable View
Will anyone make a project in vb, that searches through the a whole ftp server for a file, and returns the location of the file.
And then reply this post with the project zipped?
We wouldn't make it for you, that's not the purpose of these forums. But if you start making it and have any questions along the way, *that's* what we're here for :)
I have posted the same kind of question in vb forum. I want to write a program that takes an id and searches the file with that id and then downloads it. I cannot think of any way to assign an id to the file so that i dont need to browse the ftp to get the file.
Please help me too!
You could find the checksum of the file...then step through an FTP site with your program, checking checksums (I don't know if that'd work well over FTP, you may want to make your own protocol!), and if they match download it
Sorry abdul, I didn't read your post right the first time...you just want a way to ID the files. Checksums are the answer...if not checksums, you could convert the file's binary data to hex and run it through the MD5 algorithm...and I'm going to shut up now, before my ideas get any worse :D
What is a checksum. Can you give me an example (general) Please.
Checksums are a way to validate the size of a file against the contents, mostly to make sure the file isn't damaged (like from a compression operation), and as far as I know its unique. Doesn't really matter, I'm pretty sure it's impossible to generate checksums in VB, sorry I brought it up :(
I was wrong, I found a snippet for generating checksum data!
http://www.freevbcode.com/ShowCode.Asp?ID=655
Here's what you could do: Read in the part of the file, maybe the first 200 bytes or so. Run it through the checksum routines as described in the code, and that'll be your unique ID!