Windows 脚本主机中的 FTP 文件?

发布于 2024-08-10 03:48:39 字数 233 浏览 7 评论 0原文

通过 FTP 传输文件并在 Windows 脚本主机脚本文件 (JavaScript/VBScript) 中以编程方式管理(重命名、移动、删除)FTP 服务器中的文件的推荐方法是什么?最好不需要第 3 方 ActiveX 附加组件,因为这些“额外”软件将需要经过一个需要很长时间的批准过程,即使是免费(如啤酒)和/或开源组件也是如此。

该脚本将在数据中心环境中的 Windows 2003 Server 中运行。

谢谢。

What is the recommended way to transfer files via FTP and manage (rename, move, delete) files in an FTP server programmatically in a Windows Scripting Host script file (JavaScript/VBScript)? Preferably without requiring 3rd party ActiveX add-ons since these "extra" software will need to go through an approval process that will take a very long time, even for free (as in beer) and/or open source components.

The script is going to be run in a Windows 2003 Server in data center environment.

Thanks.

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

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

发布评论

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

评论(1

久而酒知 2024-08-17 03:48:39

我知道无需第三方组件即可完成此操作的唯一方法是将 Shell 转换为 ftp.exe。

您可以将一系列 FTP 命令放入文本文件中,然后:-

Dim oShell : Set oShell = CreateObject("WScript.Shell")
oShell.Run "c:\windows\system32\ftp.exe -s:myftpcommands.txt", , True

The only way I know that you can do it without third party components is to Shell to ftp.exe.

You would place a series of FTP commands in a text file then:-

Dim oShell : Set oShell = CreateObject("WScript.Shell")
oShell.Run "c:\windows\system32\ftp.exe -s:myftpcommands.txt", , True
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文