I need to download a file from a url. This is what I have so far:
Set WshShell = WScript.CreateObject("WScript.Shell"
url="set IEApp = WScript.CreateObject ("InternetExplorer.Application"
IEApp.navigate(url)
IEApp.Visible = TRUE
WSCRIPT.SLEEP 3000
WSHSHELL.SENDKEYS "%S"
WSCRIPT.SLEEP 10000
WSHSHELL.SENDKEYS "%S"
The problems I have with this method are
1: The download window will appear not-active about half of the time then the script errors.
2: I can't specify a download locatin for the file.
Any help on this will be appreciated.
Thanks in advance
Dan
Set WshShell = WScript.CreateObject("WScript.Shell"
url="set IEApp = WScript.CreateObject ("InternetExplorer.Application"
IEApp.navigate(url)
IEApp.Visible = TRUE
WSCRIPT.SLEEP 3000
WSHSHELL.SENDKEYS "%S"
WSCRIPT.SLEEP 10000
WSHSHELL.SENDKEYS "%S"
The problems I have with this method are
1: The download window will appear not-active about half of the time then the script errors.
2: I can't specify a download locatin for the file.
Any help on this will be appreciated.
Thanks in advance
Dan