Using FTP from the command line not understanding short 8.3 filenames

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.
 
P

Pegasus \(MVP\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top