Results 1 to 12 of 12

Thread: How To Upload

  1. #1

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    How To Upload

    Hi i would like to know how to upload using other code than this on an FTP Server.

    upload Code:
    1. My.Computer.Network.UploadFile("c:\File.txt", "http://www.someserver.com/upload.aspx")

    tanks

  2. #2

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: How To Upload

    any help??

  3. #3
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: How To Upload

    take a look at this sample... it's in C# but that shouldn't be a problem
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: How To Upload

    I have an FTP class...

    Let me find it and I will upload it here

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: How To Upload

    Here you go.
    Attached Files Attached Files

  6. #6
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: How To Upload

    Quote Originally Posted by kleinma
    Here you go.
    5 minutes to find a file
    You should consider using a desktop search app
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  7. #7
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: How To Upload

    I do use one (Windows Desktop Search).. I had to remove to proprietary code from the file before uploading it

  8. #8

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: How To Upload

    ComputerJy the link u gave me is for C# i'm using VB.NET 2005.
    kleinma, i've tried ur code but it was a little bit hard to understand to me. i don't see the place where to put the username password file to upload... ,if there is a much simple code can u tell me

    tanks

  9. #9

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: How To Upload

    Well I've tried your FTP class, but it's not working I've wrote this code
    vb Code:
    1. f.RemoteUser = "username"
    2.         f.RemotePassword = "password"
    3.         f.RemoteHostFTPServer = "username.9999mb.com"
    4.          f.UploadFile("c:\temp\index.html")

    it's showing me this error
    Cannot connect to remote server.
    and shade this line

    vb Code:
    1. Throw New IOException("Cannot connect to remote server.")

    is there a solution for this?

    tanks

  10. #10
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    Re: How To Upload

    I would guess that you need a full url like ftp://[email protected]
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

  11. #11

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: How To Upload

    for the ftp host? or? remote host?

    tanks

  12. #12

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: How To Upload

    does someone know how to make it upload?

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