webForumDet fria alternativet

Visual Basic - Upload to FTP - Inet1 error!

.NET

2 svar · 2 786 visningar · startad av Putteeh

Medlem sedan dec. 20061 inlägg
Frågan#1

Hi!

I wanna upload files to an FTP-server and I have this code:

Private Sub cmdUpload_Click()
With Inet1
.Protocol = "icFTP"
.UserName = "MYUSERNAME"
.Password = "MYPASSWORD"
.RemoteHost = "ftp.musikporten.se/"
.Execute("SEND C:\Documents and Settings\jb04pahellg\Skrivbord\test.txt")
End With
End Sub

-------
The think is the "Inet1" command i underlined as an ERROR. Why?
And one more (newbie)-thing - Where should I but this code? In what component?
I'm totally new at VB, but I think I'll have a good grip on its possibilities soon.

Thanks!
Regards Putteh :OO

vb-prob.JPG
Medlem sedan apr. 20022 743 inlägg
#2

Tråden flyttas från Script från wFs medlemmar > Script - Övrigt

Mvh,
Poffe

Medlem sedan dec. 19996 721 inlägg
#3

Use a real FTP component instead of Inet, which is a bit outdated.

http://www.enterprisedt.com/products/edtftpnet/overview.html

261 ms totalt · 4 externa anrop · v20260731065814-full.1dc6f849
128 ms — deklarationer (db)
0 ms — hämta statistik (cache)
130 ms — hämta tråd, inlägg och bilagor (db)
128 ms — ändringar (db)