CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2000
    Location
    USA
    Posts
    18

    Internet Transfer control

    I am using the microsoft internet transfer control to ftp a file from local m/c to remote m/c.
    Connection is established properly
    Heres the sample code
    Inet1.Execute , " cd /xyz/yz/z"
    Inet1.Execute ,"put c:\tmp\name.txt name.txt"

    At run time, application hangs while executing the put statement. I have tried using the stillexecuting property with no luck.

    If I get into debug mode the file is transfered fine.

    Any light on this problem is greatly appreciated.

    Thank you in advance.



  2. #2
    Join Date
    Apr 2001
    Posts
    95

    Re: Internet Transfer control

    I have not used the Inet Control... but I have used the winsock control. With it you have to put code between each statement to tell it to Wait... I think the problem you are having is that it is sending the command to "put" before previous command has been executed on the server... reply if you need more help.


  3. #3
    Join Date
    May 1999
    Posts
    27

    Re: Internet Transfer control

    Try this way:
    Inet1.Execute , " cd /xyz/yz/z"
    Inet1.Execute ,"put c:\tmp\name.txt name.txt"
    Do
    DoEvents
    Loop While Inet1.StillExecuting

    -Dj4



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