CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2015
    Posts
    1

    Problem of zero lenth file after ftp upload

    this code give me zero lenth file at upload or download

    inetFTP.URL = "ftp://ftp.0fees.us/"
    inetFTP.UserName = "******"
    inetFTP.Password = "*****"
    inetFTP.Execute , "CD htdocs/work"



    Do While inetFTP.StillExecuting
    DoEvents
    Loop




    inetFTP.Execute "", "GET " & "Mariam.exe" & " " & "Mariam.exe"

    Do While inetFTP.StillExecuting
    DoEvents
    Loop


    inetFTP.Execute , "CLOSE"
    Last edited by DataMiser; December 8th, 2015 at 07:53 PM. Reason: Removed user name and password info

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Problem of zero lenth file after ftp upload

    I have edited your post to remove the userid and password, You should never post that type of info in a public forum unless you welcome people to take over your site/account and do whatever they want with your files.

    I do not use the iNet control so not to familiar with how it works, the Get statement looks odd though
    Always use [code][/code] tags when posting code.

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

Featured