如何将ftp服务器上的文件夹中的所有文件移动到同一ftp服务器中的另一个文件夹中 [英] How to move all files in a folder at a ftp server to another folder in the same ftp server

查看:1126
本文介绍了如何将ftp服务器上的文件夹中的所有文件移动到同一ftp服务器中的另一个文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将ftp服务器上的文件夹中的所有文件移动到同一ftp服务器中的另一个文件夹中。

感谢您提前。

解决方案

您可以使用原始的ftp命令rnfr和rnto。
rnfr选择要重命名的文件。收到确认后,您可以使用rnto将其存储在不同的文件名下。
这也适用于目录。您必须位于父目录以便创建目录才能移动到,例如:



将/ rootFolder / 1移动到/ rootFolder / 2:

  CWD / rootFolder 
MKD 2
RNFR 1
RNTO 2


How to move all files in a folder at a ftp server to another folder in the same ftp server.

Thanks in Advance..

解决方案

You can use the raw ftp commands rnfr and rnto. rnfr chooses the file to rename from. After receiving a confirmation you can use rnto to store it under a different filename. this works also with directories. You will have to be at a parent directory in order to that that and create to directory to move to as well, for example:

to move /rootFolder/1 to /rootFolder/2 :

CWD /rootFolder
MKD 2
RNFR 1
RNTO 2

这篇关于如何将ftp服务器上的文件夹中的所有文件移动到同一ftp服务器中的另一个文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆