A Number of Questions...


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: A Number of Questions...

  1. #1
    Join Date
    Nov 2004
    Posts
    18

    Question A Number of Questions...

    Ok...

    I am making a DLL that makes downloading files from the net easier and im using the INet control. Is there any way to find out the size of the file on the net? At the moment I use the OpenURL() function and retrieve the file as a byte, but how do find out how big the file is, before it is downloaded? I want to know this so I can make a progress bar, (eg. amount aquired, percentage downloaded etc.)

    Secondly, does anybody know how to find out runescape stats using VB?! I know it is possible to retrieve someone's stats, but how do you do this? I don't mean using a site like RSBANDB.com or runehq.com and having them make a stats signature for you to use, I mean pinging or doing something somehow to find out your stats.

    Any help on these questions is greaetly appreciated

    mEo

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    How are you downloading the files? If the files are on an FTP server, you can issue a DIR command to get a directory listing, which includes the file size(s). If they're on an HTTP server, issue a HEAD command and check the returned Content-Length value.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Nov 2004
    Posts
    18
    I am using INet control. How do you issue the HEAD command?

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    You may not be able to do it with the Inet control. See if this helps: http://www.vbip.com/wininet/wininet_webchecker.asp
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  5. #5
    Join Date
    Nov 2004
    Posts
    18
    It does in a way...

    The example they give doesn't work when I try to configure it to download a file though

Similar Threads

  1. Learning Help
    By Carlos in forum Java
    Replies: 3
    Last Post: 07-31-2005, 06:17 PM
  2. Urgent
    By George in forum oracle.general
    Replies: 0
    Last Post: 04-01-2003, 01:02 AM
  3. Replies: 255
    Last Post: 02-13-2002, 08:32 PM
  4. Database questions.
    By Kofi Brown in forum Database
    Replies: 4
    Last Post: 05-09-2000, 10:37 AM
  5. Database questions
    By Kofi Brown in forum VB Classic
    Replies: 10
    Last Post: 05-08-2000, 10:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center