webForumDet fria alternativet

Visual Basic - Upload to FTP - Inet1 error!

2 svar · 2 786 visningar · startad av Putteeh

PutteehMedlem sedan dec. 20061 inlägg
#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
PoffeMedlem sedan apr. 20022 935 inlägg
#2

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

Mvh,
Poffe

emissionMedlem sedan dec. 19996 095 inlägg
#3

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

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

Genererad på 373 ms · cache AV · v20260730165559-full.f96bc7eb