+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    6

    Download a txt file using VBscript

     
    How do I download a txt file on the web using Vbscript.

  2. #2
    Member Acid_ICE24's Avatar
    Join Date
    Jul 2005
    Location
    Cavite, Phil.
    Posts
    94
    try looking in this site: www.w3schools.com
    keep 'em comin...

  3. #3
    Junior Member
    Join Date
    Jun 2012
    Posts
    1
    hi

    i am not finding th exact script in w3schools.com.

    please paste teh program to download a file, whether it is vbscript or batch script

  4. #4
    Junior Member
    Join Date
    Sep 2012
    Posts
    1
    You can download using XMLHTTP and leverage an ADO stream to write the binary data;
    dim xHttp: Set xHttp = createobject("Microsoft.XMLHTTP")
    dim bStrm: Set bStrm = createobject("Adodb.Stream")
    xHttp.Open "GET", "http://bla.com/xxx.png", False
    xHttp.Send

    with bStrm
    .type = 1 '//binary
    .open
    .write xHttp.responseBody
    .savetofile "c:\temp\xxx.png", 2 '//overwrite
    end with


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Folder Contents -> txt file
    By ClubMed in forum General Tech Discussion
    Replies: 7
    Last Post: April 5th, 2005, 06:43 AM
  2. C++ - Searching a txt file
    By exally in forum Webmastering and Programming
    Replies: 0
    Last Post: March 10th, 2004, 10:51 PM
  3. java update a txt file
    By Carl-cox- in forum Webmastering and Programming
    Replies: 6
    Last Post: August 10th, 2003, 07:50 PM
  4. Web form updates a txt file
    By Carl-cox- in forum Webmastering and Programming
    Replies: 50
    Last Post: June 10th, 2003, 07:06 AM
  5. VBscript file disguised as mp3
    By newbie~wan in forum General Tech Discussion
    Replies: 4
    Last Post: May 3rd, 2002, 04:28 AM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews