Results 1 to 2 of 2

Thread: MDF Files

  1. #1
    Guest

    Question

    Hi Gurus,

    I know that I can get a Unicode file from my hard drive or local network and put its content in a string variable (MDFContent in this case) by using this code (I have this part already done)

    Set fso = CreateObject("Scripting.FileSystemObject")
    Set f = fso.GetFile(FileName)
    Set ts = f.OpenAsTextStream(1, -1)
    MDFContent = ts.ReadAll

    But know, what I want is to get the same file but instead from my local drive, from the Internet, thru a URL. An expample of a file I want to access is: http://windowsmedia.vitaminic.net/es/f_pangu.mdf. So I want to enter this URL and be able to get the content of the file. I don't want to display it or view the Source, but put all its content in a String variable, as after that, I need to play with that.

    Do you have a clue about how to do it?

    Thanks much.

  2. #2
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    Sit back and take some time to read the following link:

    http://forums.vb-world.net/showthrea...threadid=30681

    With the winsock component, I was able to connect to an ftp and download the subscribers.txt content straight to a string variable without downloading it to the HD first.

    Hope it helps.
    Chris

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