Loïc
Tue Jan 20 09:20:47 CST 2004
ok it's works with the line
set oHTTP = CreateObject("MSXML2.ServerXMLHTTP")
"Loïc Deschamps" <ldeschamps@coltfrance.com> a écrit dans le message de
news:e1kfqU23DHA.3944@tk2msftngp13.phx.gbl...
> nothing happen on my workstation, no error message
> i test this script with XP
>
> "Bill James" <wgjames@mvps.org> a écrit dans le message de
> news:%23GPSxS23DHA.1816@TK2MSFTNGP12.phx.gbl...
> As I said before, it works here, so unless you can provide more details
> about what is happening for you, then I don't know what to suggest.
>
> --
>
> Bill James
> Microsoft MVP - Shell/User
>
> Windows VBScript Utilities » www.billsway.com/vbspage/
> Windows Tweaks & Tips » www.billsway.com/notes_public/
>
> "Loïc Deschamps" <ldeschamps@coltfrance.com> wrote in message
> news:%23akwdO23DHA.1392@TK2MSFTNGP11.phx.gbl...
> > ok
> > i modify the script but it 's not work
> >
> > sSource = "
http://go.microsoft.com/fwlink/?LinkId=18922"
> > sDest = "mssecure.cab"
> >
> > set oHTTP = CreateObject("Microsoft.XMLHTTP")
> > set oStream = createobject("adodb.stream")
> > oStream.type = 1
> >
> > oHTTP.open "GET", sSource, False
> > oHTTP.send
> >
> > oStream.open
> > oStream.write oHTTP.responseBody
> > oStream.savetofile sDest
> >
> > "Bill James" <wgjames@mvps.org> a écrit dans le message de
> > news:u%23hGLD23DHA.2136@TK2MSFTNGP12.phx.gbl...
> > Your message seemed to indicate you were getting an error. If so then
the
> > exact error message is important for figuring out what is wrong. The
> msgbox
> > in your command is going to fail because of missing parameter for
> > getResponseHeader, but I can't tell why you want a msgbox, it doesn't
make
> > any difference for downloading the file. I ran the script and it worked
> > fine, however the download is not a text file so I'm not sure what you
are
> > trying to do.
> >
> > --
> >
> > Bill James
> > Microsoft MVP - Shell/User
> >
> > Windows VBScript Utilities » www.billsway.com/vbspage/
> > Windows Tweaks & Tips » www.billsway.com/notes_public/
> >
> > "Loïc Deschamps" <ldeschamps@coltfrance.com> wrote in message
> > news:el9FK213DHA.2648@tk2msftngp13.phx.gbl...
> > > the file mssecure.cab are not save on my hard disk
> > >
> > > i thing that the url "
http://go.microsoft.com/fwlink/?LinkId=18922" do
> a
> > > redirection
> > >
> > > if you enter this url in your browser a file is downloaded
> > >
> > > "Bill James" <wgjames@mvps.org> a écrit dans le message de
> > > news:uOX$4m13DHA.2888@tk2msftngp13.phx.gbl...
> > > What is the error?
> > >
> > > --
> > >
> > > Bill James
> > > Microsoft MVP - Shell/User
> > >
> > > Windows VBScript Utilities » www.billsway.com/vbspage/
> > > Windows Tweaks & Tips » www.billsway.com/notes_public/
> > >
> > > "Loïc Deschamps" <ldeschamps@coltfrance.com> wrote in message
> > > news:edNPUi13DHA.488@TK2MSFTNGP12.phx.gbl...
> > > > hello
> > > >
> > > > with my script i hava an error, dit you ave an idea ?
> > > > sSource = "
http://go.microsoft.com/fwlink/?LinkId=18922"
> > > > sDest = "mssecure.txt"
> > > >
> > > > set oHTTP = CreateObject("Microsoft.XMLHTTP")
> > > > set oStream = createobject("adodb.stream")
> > > > oStream.type = 1
> > > >
> > > > oHTTP.open "GET", sSource, False
> > > > oHTTP.send
> > > >
> > > > msgbox oHTTP.getResponseHeader
> > > >
> > > > oStream.open
> > > > oStream.write oHTTP.responseBody
> > > > oStream.savetofile sDest
> > > >
> > > >
> > >
> > >
> >
> >
>
>