---
title: "Visual Basic - Upload to FTP - Inet1 error!"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/154553-visual-basic-upload-to-ftp-inet1-error"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "Putteeh"
published: "2006-12-06T12:40:20.000Z"
updated: "2006-12-16T10:25:25.000Z"
replies: 2
views: 2795
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/154553-visual-basic-upload-to-ftp-inet1-error"
---

# Visual Basic - Upload to FTP - Inet1 error!

## #1 — Putteeh, 2006-12-06T12:40Z

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

Bilagor:

- [vb-prob.JPG](https://www.webforum.nu/a/13056.jpg)

Permalänk: https://www.webforum.nu/p/154553

## #2 — Poffe, 2006-12-16T08:14Z

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

Mvh,
Poffe

Permalänk: https://www.webforum.nu/p/1910428

## #3 — emission, 2006-12-16T10:25Z

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

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

Permalänk: https://www.webforum.nu/p/1910510

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/154553-visual-basic-upload-to-ftp-inet1-error
