• save file to ftp site (A2000 SR-1)

    Author
    Topic
    #408215

    Is it possible to save a file to a ftp site? I am using the transfertext method together with an export specification. I can successfully save the file to my hard drive on my local machine, but I need to save it to a ftp site. I have the ftp site added with the username and password, but when I specifiy that site, it tells me I have an invalid internet address.

    Viewing 1 reply thread
    Author
    Replies
    • #859818

      A search for ftp in this forum turns up several threads, perhaps the ones starting at post 260430 or post 393164 will help.

      • #859891

        Thanks Hans for those threads–I did find some code I think I can use (code as follows).

        Public Function Uploadtest()
        Dim FTP As Inet
        Set FTP = New Inet
        With FTP
        .Protocol = icFTP
        .RemoteHost = “???.??.??.???”
        .UserName = “kropf”
        .Password = “#####”
        .Execute .url, “Send C:kropf.txt”
        Do While .StillExecuting
        DoEvents
        Loop
        Uploadtest = (.ResponseCode = 0)
        End With
        Set FTP = Nothing
        End Function

        The MSINET.OCX wasn’t on my system, but I downloaded it and registered it with regsvr32. Then I could add the reference Microsoft Internet Transfer Control 6.0 (SP4). The code compiles okay now, but when I try to run it, I get this error, Runtime error 429 ActiveX component can’t create object. When I click on debug, it highlights the line, Set FTP = New Inet. What am I doing wrong?

        • #859895

          I’m sorry, I don’t know anything about MSINET.OCX.

        • #859896

          I’m sorry, I don’t know anything about MSINET.OCX.

        • #860008

          Discussion has been continued in another thread in post 395430. To avoid confusion and duplication, this thread is locked. All reactions in the other thread, please. Thank you.

        • #860009

          Discussion has been continued in another thread in post 395430. To avoid confusion and duplication, this thread is locked. All reactions in the other thread, please. Thank you.

      • #859892

        Thanks Hans for those threads–I did find some code I think I can use (code as follows).

        Public Function Uploadtest()
        Dim FTP As Inet
        Set FTP = New Inet
        With FTP
        .Protocol = icFTP
        .RemoteHost = “???.??.??.???”
        .UserName = “kropf”
        .Password = “#####”
        .Execute .url, “Send C:kropf.txt”
        Do While .StillExecuting
        DoEvents
        Loop
        Uploadtest = (.ResponseCode = 0)
        End With
        Set FTP = Nothing
        End Function

        The MSINET.OCX wasn’t on my system, but I downloaded it and registered it with regsvr32. Then I could add the reference Microsoft Internet Transfer Control 6.0 (SP4). The code compiles okay now, but when I try to run it, I get this error, Runtime error 429 ActiveX component can’t create object. When I click on debug, it highlights the line, Set FTP = New Inet. What am I doing wrong?

    • #859819

      A search for ftp in this forum turns up several threads, perhaps the ones starting at post 260430 or post 393164 will help.

    Viewing 1 reply thread
    Reply To: Reply #859891 in save file to ftp site (A2000 SR-1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel