Results 1 to 5 of 5
  1. #1
    Star Lounger
    Join Date
    Jan 2001
    Location
    Kansas, USA
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    save file to ftp site (A2000 SR-1)

    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.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: save file to ftp site (A2000 SR-1)

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

  3. #3
    Star Lounger
    Join Date
    Jan 2001
    Location
    Kansas, USA
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: save file to ftp site (A2000 SR-1)

    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?

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: save file to ftp site (A2000 SR-1)

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

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: save file to ftp site (A2000 SR-1)

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

Posting Permissions

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