Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: Does MGet work with spaces in the filename?
joanne

From: Higganum, CT USA
Posts: 11
Member Since: 01/07/04
posted January 7, 2004 2:08 PM

I have a filepath and a file which could both include spaces. My MGet is failing with 'The system cannot find the file specified."

I have searched the forums and found items addressing this issue. The solution suggested going to the specific directory before executing the MGet. This did not work for me. I had all the necessary quotes around the filename.

Here is the code:

strMyFile = "my file.txt"
m_frmFTP.Ftp1.Directory = "ccentral\install"
m_frmFTP.Ftp1.MGet """" & strMyFile & """", "c:\testfiles"

Can someone tell me if this should work or not? I just want to know before I restrict spaces in the file names.

Thanks
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 7, 2004 2:14 PM

We will interpret the space as a delimiter for filenames. If you eliminate the spaces from your call to MGET it should work. For example, if you are looking for "Files with spaces.*", try "Files*with*spaces.*" and see if that works. If it doesn't try other wildcards. If the doesn't work, you won't be able to use MGET and will have to use Retrieve instead.
joanne

From: Higganum, CT USA
Posts: 11
Member Since: 01/07/04
posted January 7, 2004 2:29 PM

Using wildcards leaves too much room for incorrect files coming back.

I will restrict the use of a space.

Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX