Results 1 to 4 of 4

Thread: download file using FTP

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    198

    download file using FTP

    hi all
    i'm using "FtpGetFile" in vb6 to get file from the FTP
    it's works but:
    i have aproplem downloading file with "space" in the name
    for example : "file name" not work
    "filename" work

    in DOS it's the same thing but if i write the DOS command 'get "file name" ' it's working
    in dos i can download the file using ' " '
    how can i do that in vb6?

    thanks all
    IT CTO & System Administrator.

  2. #2

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    198

    Re: download file using FTP

    Quote Originally Posted by RhinoBull View Post
    FTP does not "allow" spaces in the file name/path - it stops reading file name/path when space is found and therefore malfunctions.
    if u using DOS -OS u can type the file name between ' " ' with spaces and it's works perfect.
    how do i do that using vb6.
    IT CTO & System Administrator.

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: download file using FTP

    If you mean console then it converts long path/file names to short name (like Progra~1 instead of Program Files, etc) so it doesn't exceed 8 chars.
    Like I said FTP does not allow spaces in the file name/path - that's the bottom line.

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