Results 1 to 7 of 7

Thread: [RESOLVED] Need help with FTP uploading

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Location
    Belgium
    Posts
    156

    Resolved [RESOLVED] Need help with FTP uploading

    Hello.
    I got my ftp uploader 50% finished but 1 problem,

    current code:
    Code:
    ITC.Protocol = icFTP
    ITC.URL = "no"
    ITC.username = "not"
    ITC.Password = "funny"
    ITC.Execute ITC.URL, "PUT C:\lol.txt"
    The thing is, PUT C:\lol.txt MUST be inside " "
    I have tried "PUT", "c:\lol.txt" but that doesnt work.
    I really need a working code that can have variables inside like:
    "PUT", app.path & and so on...

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Need help with FTP uploading

    Did you try

    PUT "C:\lol.txt"

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Location
    Belgium
    Posts
    156

    Re: Need help with FTP uploading

    I need like this:
    PUT "C:\folder\" & variablehere & "\lol.txt"

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Need help with FTP uploading

    Ok. What happens when you do that?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Location
    Belgium
    Posts
    156

    Re: Need help with FTP uploading

    It.. well... It doesnt do anything. Says msgbox ("TRANSFER COMPLETE")
    But really it doesnt upload

  6. #6
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Need help with FTP uploading

    Quote Originally Posted by masterkert3
    I need like this:
    PUT "C:\folder\" & variablehere & "\lol.txt"
    Have you tried a slightly different variation
    Code:
    ITC.Execute ITC.URL, "PUT " &  "C:\folder\" & variablehere & "\lol.txt"
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Location
    Belgium
    Posts
    156

    Re: Need help with FTP uploading

    NICE WORK!
    it works :P
    I never thought of that hehe

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