MKrauss
asked on
How do I download files from server using vbscript
How do i simply download a file from a web server using vbscript with
no 3rd or additional tools ?
many thx
no 3rd or additional tools ?
many thx
Take a look at http://www.eggheadcafe.com/articles/20010329.asp or http://www.aspemporium.com/aspEmporium/tutorials/vbs_download.asp
you con use the execwb command from the internetexplorer.applicati on object
dim ie
set ie.createobject("internete xplorer.ap plication" )
ie.visible=false
ie.navigateto("<url here>")
ie.document.execwb("saveas ",false,<d estination pathhere>)
ie.quit
dim ie
set ie.createobject("internete
ie.visible=false
ie.navigateto("<url here>")
ie.document.execwb("saveas
ie.quit
ack!!!! its Navigate2
not navigateto
change
ie.navigateto("<url here>")
to
ie.navigate2("<url here>")
not navigateto
change
ie.navigateto("<url here>")
to
ie.navigate2("<url here>")
ASKER
hmmm,
i'm getting an error , can not use parantheses when calling a sub within
ie.document.execwb("saveas ",false,"c :\")
or
ie.document.execwb("saveas ",false,"c :\file.txt ")
i'm getting an error , can not use parantheses when calling a sub within
ie.document.execwb("saveas
or
ie.document.execwb("saveas
arg.....!!!!
(thats why i should test things first)
vbscript will not allow functions with multiple parameters to be called on the left side, to get around, change to...
call ie.document.execwb("saveas ",false,"c :\file.txt ")
(thats why i should test things first)
vbscript will not allow functions with multiple parameters to be called on the left side, to get around, change to...
call ie.document.execwb("saveas
ASKER
This shows me then a unsepcified error and the download dialog appears (open,save etc),
is there a way to fide it and do a auto save ?
is there a way to fide it and do a auto save ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.