如何安排将一个文件夹中的所有文件移动到另一台服务器?

发布于 2024-10-07 10:26:51 字数 369 浏览 0 评论 0原文

我进行了快速搜索,但没有看到任何相关的内容,这让我觉得很奇怪,因为这似乎是一个常见问题。也许我只是走错了路或者太厚了?谁知道呢。

无论如何,我正在尝试设置一个计划任务,将文件夹中的所有文件从服务器 A 移动到服务器 B 中的文件夹。如果这是复制它们的简单问题,那就没问题了,因为我已经完成了该工作使用核心 FTP 和批处理文件,但我希望在复制完成后将它们从服务器 A 中删除。

我正在查看 Windows ftp 命令,但是尽管每当我尝试执行命令时我都成功地从服务器 B 登录到服务器 A,但它只花了很长时间,然后就断开了连接。

对此的任何帮助将不胜感激,我需要它是一个可调度的文件,但它是 .bat、.vbs 还是其他我没有想到的文件并不重要?

谢谢, 哈利

I did a quick search and couldn't see anything that was relevant which I found strange as this seems like it'd be a common question. Maybe I'm just going the wrong way about it or being thick? Who knows.

Anyway, I am trying to set up a scheduled task that moves all the files in a folder from Server A to a folder in Server B. If this was a simple matter of copying them it would be fine as I'd already got that working using Core FTP and a batch file but I'd like them to be removed from Server A after the copy has taken place.

I was looking at the windows ftp commands but although I managed to log onto Server A successfully from Server B whenever I tried to do a command it just took a very long time and then disconnected.

Any help in this would be appreciated, I need it to be a schedule-able file but it doesn't matter whether it is a .bat, .vbs or anything else that I haven't though of?

Thanks,
Harry

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梓梦 2024-10-14 10:26:51

您可以使用 www.Dropbox.com

为什么?为了稳定。任何移动文件的自制 ftp 脚本很容易在传输过程中出现未检测到的错误,从而导致文件被删除。

You could use www.Dropbox.com

Why? For stability. Any home-brew ftp script that moves files, is prone to an undetected error in transmission, resulting in deleted files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文