MSDN писал(а):Password, UserName Properties (Internet Transfer Control) Example
The following example shows how to set the Password and UserName properties before logging onto a remote site. The handler first sets the properties, then calls the Execute method to return the directory of the site referenced by the URL property. (The results of the DIR command can be fetched using the GetChunk method in the control's StateChanged handler.)
- Код: Выделить всё
Private Sub btnGetDir_Click()
With Inet1
.URL = "ftp://ftp.example.microsoft/"
.UserName = "John Smith"
.Password = "mAuI&9$6"
.Execute , "DIR" ' Returns the directory.
End With
End Sub