Results 1 to 9 of 9

Thread: [RESOLVED] Inet "Put"; Space in name problem

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2005
    Posts
    248

    Resolved [RESOLVED] Inet "Put"; Space in name problem

    Hi all,

    I'm writing a program that has this line of code:
    Code:
    FTPInet.Execute , "Put C:\Program Files\ArbChat\CNs.txt ArbChat/CNs.txt"
    I couldn't get it to work for ages, then I realised that the problem was "Program Files" - There's a space between the two, and it thinks that's the point that it needs to stop reading, and the next part is the file to be uploaded.

    I tried using the age-old internet method of adding %20 instead of a space, but as this is a local file it doesn't seem to work. I tested it with exactly the same code, but "ProgramFiles" (without the space), and created the directory, and it worked fine.

    Any ideas how I can tell it that the space is part of the filename?

    Thanks ^_^
    Last edited by BubbleLife; Dec 10th, 2005 at 05:40 AM.

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