I know I know, there are plenty of examples of the use of inet and ftp for visual basic.
However. I seem to have a more unique question that I can't see that anyone has asked.
I'm writing a vbScript (Windows scripting host) that uses the inetctls.inet.1
My problem is, I don't quite understand why this simple little script doesn't work.
what is wrong with it? I don't suffer from insanity.
I enjoy every minute of it.
However. I seem to have a more unique question that I can't see that anyone has asked.
I'm writing a vbScript (Windows scripting host) that uses the inetctls.inet.1
My problem is, I don't quite understand why this simple little script doesn't work.
Code:
dim objInet
dim LocFileSpec, SerFilespec
Set objInet = CreateObject("InetCtls.Inet.1")
LocFileSpec="test.txt"
SerFilespec="dirmap.htm"
with objInet
.requestTimeout = 900
.URL = "ftp://ftp.microsoft.com"
.Username ="anonymous"
.Password = "someone@script.test"
end with
objInet.Execute , "Get " & SerFilespec & " " & LocFilespec
what is wrong with it? I don't suffer from insanity.
I enjoy every minute of it.