Command line transfers fail if file name has spaces

Core FTP client questions and answers
Locked
jischmidt
Posts: 3
Joined: Tue Jun 19, 2012 4:01 am

Command line transfers fail if file name has spaces

Post by jischmidt »

Newbie to Coreftp here. I am using Core FTP LE on a Windows 7 64 bit system.

I have a need to be able to batch ftp files up. All goes well if the file name has no spaces in it, but it errors out if if does contain spaces. If I attempt to ftp "Track04.mp3" all is well, but if I attempt to ftp [u][b]"Track 04.mp3"[/b][/u] it errors out.

Here is the command line in the batch file that is doing the actual ftp

coreftp.exe -u c:\my_podcasts\Track 04.mp3 ^
-output \My_podcasts\output.log -log \My_podcasts\log.log ^
ftp://user:pword@ftp.sbsssoftware.com/public_ftp/vcfc

This is the resulting logfile

06/18/12 23:13

Started on Monday June 18, 2012 at 23:13:PMResolving ...

Connect socket #1028 to 192.168.1.100, port 21...Can't establish connection --> :21 @ Mon Jun 18 23:14:03 2012
(0-5)ReconnectRetry #1, Connecting to ...Resolving ...

Connect socket #1060 to 192.168.1.100, port 21...Can't establish connection --> :21 @ Mon Jun 18 23:14:33 2012
(0-5)ReconnectRetry #2, Connecting to ...Resolving ...

Connect socket #900 to 192.168.1.100, port 21...Can't establish connection --> :21 @ Mon Jun 18 23:15:03 2012
(0-5)Total uploaded files: 0

Total uploaded data: 0

Total downloaded files: 0

Total downloaded data: 0

This is the resulting output file

0 0 Connection [u][b]Failed 04.mp3[/b][/u]

If I use the GUI I can transfer that file just fine.


Can anyone please offer me some help or insight? I am desperate in Minneapolis!
jischmidt
Posts: 3
Joined: Tue Jun 19, 2012 4:01 am

Help!

Post by jischmidt »

Does anybody have any thoughts at all?
ForumAdmin
Site Admin
Posts: 1011
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

If a filename has spaces in it, it needs quotes around it.

You can use quotes even if the filename doesn't have spaces in it.
Locked