Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FTP upload per VB6

Empfohlene Antworten

Hallo !

Ich bin kein Informatiker nur ein IT-SE aber habe denoch eine Frage :

Ich möchte das mein Programm eine Verbindung zum server herstellt

und eine Datei ablädt. Mehr nicht.

Wie mache ich das am besten.

habe es schon hier mit versucht :

If Config.ftpon.Value = True Then


            'On Error Resume Next

            '// Upload the file

            inetFTP.URL = Config.txtftpserver.Text

            inetFTP.UserName = Config.txtftpuser.Text

            inetFTP.Password = Config.txtftppass.Text

            inetFTP.Protocol = icFTP


            strRemote = Config.txtSource.Text & ".jpg"

            strLocal = App.Path & "\" & Config.txtSource.Text & ".jpg"

            inetFTP.Execute netFTP.URL, "PUT " & strLocal & " " & strRemote




            Do While inetFTP.StillExecuting: DoEvents: Loop

            On Error GoTo 0

            End If

        End If

    End If

aber kein upload ergebnis erreicht.

Hilfe !!!!

Topcam

Das hier ist ein fertiges Modul, um Daten per wininet.dll auf einen FTP-Server zu laden. Das hab ich schon mal verwendet, klappt recht gut.

Link: http://www.vbarchiv.net/archiv/tipp_details.php?pid=759

Hallo Reindeer , danke für den Tip.

Habe ich auch schon eingebunden nur wie über gebe ich die Variable :

USER und PASSWORT an diese Stelle :

 Verbindung zum Server herstellen

Public Function Connect(ByVal sRemoteHost As String, _

  Optional ByVal [U]sUsername[/U] As String = "anonymous", _

  Optional ByVal [U]sPasswort [/U] As String = "guest") As Boolean

wenn ich den STRING lösche und dafüer = config.user.text verweise

haut das nicht hin .

Danke

Topcam

Du musst die Variablen ganz einfach an die Function übergeben:

If Connect (config.server.text, config.user.text, config.password.text)=True Then ...

In der Function selber bzw. in der Deklaration brauchst/darfst Du nichts ändern.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.