Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21842

Can't get Inet.OpenURL to do something

$
0
0
I'm using the Inet.OpenURL command but it will only open the file if it is in the public folder or a sub folder under of the our website. Here is my code:

MyTest$ = Inet1.OpenURL("www.oursite.com/whatever.txt")

.....This works fine, but if I have the same file in a different folder NOT under the public it won't return it

MyTest$ = Inet1.OpenURL("www.oursite.com/DifferentFolder/whatever.txt")

.....This returns file not found when the folder DifferentFolder is not under the public folder

We have already versified all the obvious like spelling, capitalization, file/folder actually existing, etc. We also have already set the properties of the Inet to our site, username, password.

If we use the EXECUTE with GET it does find things.

With Inet1
.URL = "ftp://oursite.com"
.UserName = "xxxxxxxx"
.Password = "xxxxxxxx"
.Execute , "GET /DifferentFolder/whatever.txt C:\Test\whatever.txt"
End With

Viewing all articles
Browse latest Browse all 21842

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>