Having a strange problem. The code below has been working for years, however, we just changed our hosting and now it does not perform the Get. I have verified the correct username, password and file name, including correct capitalization where used.
However, if I use this code, it does retrieve the file.
The main issue is that after appending to this text file, I need to upload it back to the site. Again for years, I have been using the Put command with no issues. But it does not put either now.
Any ideas?
Code:
WarningLabel.Caption = "Getting existing file from WEB"
With MyForm.Inet1
.URL = "ftp://mysite.com"
.UserName = "myusername"
.Password = "mypassword"
.Execute , "GET /mysite/mytextfilename.txt C:\testfolder\mytextfilename.txt"
End With
Code:
MyTest$ = MyForm.Inet1.OpenURL("www.mysite.com/mytextfilename.txt")
Open "C:\testfolder\mytextfilename.txt" For Output As #7
Print #7, MyTest$;
Close #7
Any ideas?