moves files remotely using ftp

Hi All,
How can i move files from one directory to another in remote server using ftp?

Thanks in Advance,

Without knowing anything about your Operating Systems or ftp software the best guess is to look at the ftp "rename" command. On my machine the command does not take wildcards but it does take full pathnames.

Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /var/tmp
250 CWD command successful.
ftp> rename /var/tmp/myfile /tmp/myfile
350 File exists, ready for destination name.
250 RNTO command successful.
ftp> cd /tmp
250 CWD command successful.
ftp> dir myfile
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
-rw-r--r--   1 myuser       mygroup              0 Apr  1 15:08 myfile
226 Transfer complete.

Hi,
Thanks for your reply.
I tried the below command and it worked for 1 file. But i am unable to move multiple files (say 1000 files) to another directory through "rename" command. Is there any way i can move multiple files?

You'll need to use ftp "dir" to get a list of files back to your local server, then use this list to compose a long list of "rename" commands for your ftp script.

Hi,
through dir i got the list of filenames in the specified directory. But now how to use rename command to move 1000 files from one directory to other directory using remote server?

Thank you,