Results 1 to 3 of 3

Thread: DevPower FTP download problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 1999
    Location
    SLOVENIA, Europe
    Posts
    110
    Check out this code, I wrote:

    FTP1.TransferType = ftpAscii
    If FTP1.Connect("192.22.33.5", usn, pws) = ftpSuccess Then
    If FTP1.GetFile("easy1.txt", "c:\temp") = ftpSuccess Then
    MsgBox "OK"
    Else
    MsgBox "Not OK"
    End If
    Else
    MsgBox "Not OK"
    End If

    If FTP1.Rename("easy1.txt", "easy2.txt") = ftpSuccess Then
    MsgBox "Not OK"
    Else
    MsgBox "Rename failed: " + vbNewLine + FTP1.LastError
    End If
    FTP1.Disconnect

    When I tried to download file easy1.txt everything works fine and then I rename this file on server it worked fine to.

    But:

    I executed code for second time FTP download file easy1.txt (that doesn't exists!!!?!!) but can not rename it, because there is no file easy1.txt on server(that's OK).

    What should I do with this phantom file. Brrrr.

    Ermin


    Ermin Gutenberger

    VB.NET 2010

  2. #2
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    455
    Hello Ermin,

    I can't give you any answer, but wich references are you using for this code?

    Michelle.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 1999
    Location
    SLOVENIA, Europe
    Posts
    110
    I use DewPower FTP control.

    http://www.devpower.com
    Ermin Gutenberger

    VB.NET 2010

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width