Timbro
October 5th, 2004, 08:23 AM
i have a virtual directory on the server that points to files to be downloaded.
Throught Internet Explorer (client side) i have to download that files.
How can i do that? i'm using javascript.
THX ALL. :thumb:
wrecklesswun
October 7th, 2004, 10:34 PM
Dim FSO, WSH, png, DatFN, sTime, dTime, CurrVer,j,ftpfile,objfso
Set WSH = CreateObject("WScript.Shell")
Set objINet = CreateObject ("InetCtls.Inet.1")
set objfso = CreateObject("scripting.filesystemobject")
Const RemoteDirectory = "/jffs/images/full/"
Const LocalDirectory = "c:\"
With objINet
.RequestTimeout = 15
.UserName = "anonymous"
.Password = "ccadmin@who.com"
.URL = "ftp://"&ip&"/"
End With
ftpfile=Split(filelist,"^^")
For j=0 To UBound(ftpfile)
inetwait
dTime = Timer
objINet.Execute , "GET " & RemoteDirectory &ftpfile(j)& " " & LocalDirectory & ftpfile(j)
INetWait
WScript.Sleep 3000
objFSO.CopyFile "C:\"&ftpfile(j), "c:\whereever\", OverwriteExisting
Next
'objINet.Execute , "DIR " & RemoteDirectory & fit".png"
'INetWait
'png = (objINet.GetChunk (1024,0))
end function