【问题标题】:Powershell connect to FTP using scriptPowershell使用脚本连接到FTP
【发布时间】:2017-05-02 15:23:25
【问题描述】:

简单的问题,如何使用 powershell 脚本连接到 FTP?我可以使用命令提示符轻松连接到 FTP,例如:

ftp "ip address"
"some username"
"some Password"

但是当我尝试在脚本中使用上述代码连接到 FTP 时,我无法连接,我看到的只是提示要求输入用户名。在脚本中提供 FTP“IP 地址”后,是否需要使用某种方法进行连接?

【问题讨论】:

标签: powershell ftp


【解决方案1】:

我使用 ftp -s:"filewithcommands" 找到了我需要的答案,可能应该更多地解释我想要什么。以下是“filewithcommands”中的内容

open
IP address
user
pass
cd "targetdir"
get "file"
quit

【讨论】:

  • 这与PowerShell无关。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-06-18
  • 1970-01-01
  • 2013-01-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多