比如WinSCP里保存的站点名为xxx@yyy,现在要把e:\tmp\test.txt传到远程的/public_html/other/目录下:
winscp.exe xxx@yyy /console /script=e:\tmp\upload.scp
其中e:\tmp\upload.scp是我们定义的自动化脚本,其内容为:
option batch on option confirm off cd /public_html/other put e:\tmp\test.txt close exit
没有评论:
发表评论