| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: List command and spaces in File name |
| axYak From: Newark, NY USA Posts: 13 Member Since: 10/03/02 |
posted June 9, 2003 11:11 AM Hi, I've been running the Dart FTP tool for some time with minor problems. I recently encountered a small problem. The code is as follows: path = "/pf_store/1083/Adriane FINAL darker.jpg" ftp1.List path The error is as follows: the system can't find the specified path. The problem is that there is a space in the file name and the rest of the file name gets cut off. I tried putting quotes around the whole path but that also failed with and incorrect syntax error. Any ideas? I really need some help on this. P.S. Don't ask why I list a specific file. It is part of a complicated routine that is allows for the path to be directories. It is complicated to determine if the path is to a file or a directory. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted June 11, 2003 10:03 AM Hi, Does the following work (in VB)? path = """/pf_store/1083/Adriane FINAL darker.jpg""" Thanks, -ken |
| axYak From: Newark, NY USA Posts: 13 Member Since: 10/03/02 |
posted June 11, 2003 10:34 AM Thanks for the response. I tried adding quotes an %20. It did not work. I also tried using standard FTP client to dir and ls the file. It worked only when using the file name e.g. "Adriane FINAL darker.jpg". When using the complete path it also failed. Any ideas? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted June 11, 2003 12:54 PM Hi, If that is the case, is there a reason you cannot go into the directory before storing the file? Thanks, -ken |
| axYak From: Newark, NY USA Posts: 13 Member Since: 10/03/02 |
posted June 11, 2003 4:10 PM Did you mean to use the Dart FTP equivalent of CD? It is easier in the meantime (because of how the code is structured) to replace spaces with underscores. I was still wondering if space thing was a bug with the List method or some limitation in the FTP server? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted June 11, 2003 5:22 PM Hi, Yes, you can set the Directory property before doing the List. If you are able to do this with other Ftp utilities (for example, command line Ftp), then you can do it with the control. If not (and it sounds like you cannot), then it is a limitation of the server. -ken |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|