CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 1999
    Posts
    91

    Question How to copy a file to the webserver with the internet control (msinet.ocx)?

    Hi,

    Is it possible to copy/transfer a file to the webserver with the internet control?

    I do not want to use ftp.

    Regards,

    Maurice

  2. #2
    Join Date
    Sep 2001
    Location
    Québec, Canada
    Posts
    1,923
    You can use

    Code:
    dim b() as byte
    b() = inet1.OpenUrl("Http://bla.bla.bla/FileName.xxx", 1)
    Then save the b() array to a file, not tested but should work

    JeffB - hope it helps

  3. #3
    Join Date
    Aug 1999
    Posts
    91

    Not what I meant

    Jeff,

    The example you gave me is downloading a file from the webserver to a local drive.

    What I want is to upload file(s) to a webserver automatically, so without interaction from the user.

    Regards,

    Maurice

  4. #4
    Join Date
    Aug 2002
    Location
    a
    Posts
    1

    Post Use Execute

    hi
    You can use itc.execute("ftp:\server","put filename destination")
    this should work because i have used this.
    I don't have to sample code, if u want it i will find and send it to you.,

    regards
    girish

  5. #5
    Join Date
    Aug 1999
    Posts
    91

    Without using ftp

    Thanks for your anwer.

    Do you also have an example without using ftp?


    Regards,

    Maurice

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