运行 通过任务计划程序的 WinSCP 脚本

Run WinSCP script via Task Scheduler

我已经编写了一个脚本来通过任务计划程序打开一个 WinSCP 会话。我的代码是:

open ftpes://user:password @192.168.88.200:3688/

在任务计划程序中,我通过指定执行它:

当我尝试执行它时,WinSCP 打开并显示:

Host 'D' Does not exist.

我保存在D盘的脚本里。你能帮我看看有什么问题吗?

到运行WinSCP脚本,使用/script= switch,例如:

  • Program/script: "C:\Program Files (x86)\WinSCP\WinSCP.com"
  • 添加参数:/script="D:\test.txt"

资源:

您还可以为您准备 WinSCP GUI generate both the script and batch file(甚至是直接包含 WinSCP 命令的批处理文件)。