I'm needing help automating some downloads, and I can't seem to get IE to tell me whether the requested path is valid. I'm adding one to our current definition value, and checking for the presence of the file on the website with:
Err.number is always 0, if the file exists or not.
Any tips or other aproaches would be welcome.
Code:
On error resume next
set x = createobject("internetexplorer.application")
x.navigate "[URL unfurl="true"]http://download.nai.com/products/datfiles/4.x/nai/dat-4726.zip"[/URL]
wscript.echo Err.number
x.quit
set x = nothing
err.clear
Err.number is always 0, if the file exists or not.
Any tips or other aproaches would be welcome.