G
Guest
I need to FTP a file to an FTP server -- the destination path has spaces.
When I interactively change directory using FTP in a command window, I can
put double quotes around a directory name that has one or more spaces. Then
the CD command will work.
However, in my C program, I cannot figure out how to handle the space(s) in
the directory name for use with FtpSetCurrentDirectory.
Including double quotes within the directory string doesn't help:
sprintf(szDir, "\"%s\"", szPathWithSpaces);
Please Help!
When I interactively change directory using FTP in a command window, I can
put double quotes around a directory name that has one or more spaces. Then
the CD command will work.
However, in my C program, I cannot figure out how to handle the space(s) in
the directory name for use with FtpSetCurrentDirectory.
Including double quotes within the directory string doesn't help:
sprintf(szDir, "\"%s\"", szPathWithSpaces);
Please Help!