Results 1 to 3 of 3

Thread: check if a online file does exist

  1. #1

    Thread Starter
    Member
    Join Date
    May 2011
    Posts
    47

    check if a online file does exist

    Hi,

    is it possible to check a file online? F.i. www.certaindomain.com/test/test.txt. I want to check if this file is readable (when it is not it does not exist?).
    Is this possible?

    Regards

    E.Traas

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: check if a online file does exist

    try this...
    Code:
    Dim text as string
    Try
        Dim wc as new net.webclient
        Text = wc.downloadstring(“url”)
    Catch
        ‘Failed
    End try

  3. #3

    Thread Starter
    Member
    Join Date
    May 2011
    Posts
    47

    Re: check if a online file does exist

    Works like a charm.

    Thank you very much.

    Regards
    Erwin

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