Using FTP from the command line not understanding short 8.3 filenames

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

I'm having a problem when using FTP from a Windows or UNIX client to access
a Windows 2003 FTP Server where it doesn't understand the short name from
within FTP.

As an example, if I have a folder with a long file name of "Long Folder
Name" and the filesystem has assigned it a short name of "LONGFO~1", FTP
will not recognize it.

The following test script would fail:

ftp ftpserver
guest
guest
cd \LONGFO~1

550 LONGFO~1: The system cannot find the file specified.

I can't use the long filename because the UNIX system doesn't understand the
folder name because of the "space" in it. The long filename will work from
within the Windows client using quotes but that's not where I need it to
work from.

I'm actually surprised that the short name will fail. Any suggestions.
 
Richard said:
I'm having a problem when using FTP from a Windows or UNIX client to access
a Windows 2003 FTP Server where it doesn't understand the short name from
within FTP.

As an example, if I have a folder with a long file name of "Long Folder
Name" and the filesystem has assigned it a short name of "LONGFO~1", FTP
will not recognize it.

The following test script would fail:

ftp ftpserver
guest
guest
cd \LONGFO~1

550 LONGFO~1: The system cannot find the file specified.

I can't use the long filename because the UNIX system doesn't understand the
folder name because of the "space" in it. The long filename will work from
within the Windows client using quotes but that's not where I need it to
work from.

I'm actually surprised that the short name will fail. Any suggestions.

Use long names instead:
cd "Long Folder Name"
and pay attention to upper/lower case.
 
Back
Top