Results 1 to 8 of 8

Thread: FTP File Search

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Højslev, None, Denmark
    Posts
    75

    Post FTP File Search

    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?
    Queen ROCKS!!!!!

  2. #2
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    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
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  3. #3
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    I have the same kind of question

    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!
    Baaaaaaaaah

  4. #4
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    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
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  5. #5
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    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
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  6. #6
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    that is confusing!

    What is a checksum. Can you give me an example (general) Please.
    Baaaaaaaaah

  7. #7
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    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
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  8. #8
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226

    Well, I'll be damned!

    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!
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width