Results 1 to 2 of 2

Thread: Uploading to FTP w/ Inet

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Philadelphia
    Posts
    123
    Ok, I can do this:
    Code:
     Inet1.Execute, "PUT C:\file1.text Upload/file2.text"
    But what if I don't know the name of the file to uploaded? The name is contained in a variable, and "PUT.." doesn't allow variables, as far as I can tell. If I do
    Code:
     Inet1.Execute, "PUT file1 Upload/file2
    it will look for the file "file1" on my system. It doesnt look for the string contained in the variable. How do i do this?
    VB6 & VC++6 Pro (SP4), Java (Sun JDK)

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Philadelphia
    Posts
    123
    I answered my own question:
    Code:
    Inet1.Execute, "PUT " & file & " " & Upload/file.txt
    VB6 & VC++6 Pro (SP4), Java (Sun JDK)

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