-
September 16th, 2005, 10:06 AM #1Junior 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.
-
September 26th, 2005, 02:11 AM #2
try looking in this site: www.w3schools.com
keep 'em comin...
-
June 21st, 2012, 01:20 AM #3Junior 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
-
September 20th, 2012, 01:48 AM #4Junior 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
-
Folder Contents -> txt file
By ClubMed in forum General Tech DiscussionReplies: 7Last Post: April 5th, 2005, 06:43 AM -
C++ - Searching a txt file
By exally in forum Webmastering and ProgrammingReplies: 0Last Post: March 10th, 2004, 10:51 PM -
java update a txt file
By Carl-cox- in forum Webmastering and ProgrammingReplies: 6Last Post: August 10th, 2003, 07:50 PM -
Web form updates a txt file
By Carl-cox- in forum Webmastering and ProgrammingReplies: 50Last Post: June 10th, 2003, 07:06 AM -
VBscript file disguised as mp3
By newbie~wan in forum General Tech DiscussionReplies: 4Last Post: May 3rd, 2002, 04:28 AM



LinkBack URL
About LinkBacks



Reply With Quote

Several links no longer work
Cisco's Internetworking Technology...