login about faq

something is off with my code..

this code:

        success = ftp.ChangeRemoteDir(somepath)
        If (success <> True) Then
            MsgBox("Fehler in der Ordnerstruktur auf dem server. Download nicht möglich.")
            Exit Sub
        End I
        ftp.DownloadTreeAsync(mypath)

does not start the download at all, and produces following chilkat log. it is as if downloadtreeasync isnt called at all. (somepatch and mypath are real paths and they do exist.) if I use DownloadTree (not Async) it works.

    ChilkatLog:
    ChangeRemoteDir:
    DllDate: Jul 15 2015
    ChilkatVersion: 9.5.0.52
    UnlockPrefix: IGORMAFTP
    Username: PC1203-IMA:ima
    Architecture: Little Endian; 32-bit
    Language: .NET 4.5
    VerboseLogging: 0
    dir: /Programmierung/Movicon/Projekte/AAA/Maschinenraum 2012/FFMO_CAF_MSR_V01_04
    changeRemoteDir:
      simplePathCommand:
        simpleCommand:
          sendCommand:
            sendingCommand: CWD /Programmierung/Movicon/Projekte/AAA/Maschinenraum 2012/FFMO_CAF_MSR_V01_04
          --sendCommand
          readCommandResponse:
            replyLineQP: 250 CWD command successful.
          --readCommandResponse
        --simpleCommand
      --simplePathCommand
    --changeRemoteDir
    Success.
  --ChangeRemoteDir
--ChilkatLog

asked Jul 16 '15 at 03:12

sharkyenergy's gravatar image

sharkyenergy
5081621

edited Jul 16 '15 at 03:15


found the solution...

        cktask = ftp.DownloadTreeAsync(downloadpathftp)
        cktask.Run()
link

answered Jul 16 '15 at 07:57

sharkyenergy's gravatar image

sharkyenergy
5081621

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×131
×33
×12

Asked: Jul 16 '15 at 03:12

Seen: 609 times

Last updated: Jul 16 '15 at 07:57

powered by OSQA