Winscp脚本同步文件
来源:互联网 发布:姓名数据库查询系统 编辑:程序博客网 时间:2024/06/05 00:54
# winscp.exe /console /script=sample.txt
# Automatically answer all prompts negatively not to stall
# the script on errors
# option echo on|off
# Automatically answer all prompts negatively not to stall
# the script on errors
# option echo on|off
option echo off
# option batch on|off|abort|continue
option batch on
option batch on
# option confirm on|off
option confirm off
option confirm off
# option transfer binary|ascii|automatic
# option synchdelete on|off
# option exclude clear | [;...]
# option include clear | [;...]
# option synchdelete on|off
# option exclude clear | [;...]
# option include clear | [;...]
# open [ sftp|ftp|scp:// ][ [ :password ] @ ] [ : ]
# open user:password@example.com
# Connect
open USER:PASS@IP:PORT
# open user:password@example.com
# Connect
open USER:PASS@IP:PORT
# Change remote directory
# cd /home/user #远程工作目录
# cd /home/user #远程工作目录
cd REMOTE PATH
# Change local directory
# set to Self's working dir
lcd LOCAL PATH #本地工作目录
# set to Self's working dir
lcd LOCAL PATH #本地工作目录
# Force binary mode transfer
option transfer binary
option transfer binary
# Download file to the local directory d:\
# get examplefile.txt d:\
# get examplefile.txt d:\
# option synchdelete on|off
option synchdelete off #是否同步删除
option synchdelete off #是否同步删除
# option include clear | [;...]
# option include /2008-*-*/;/2009-*-*/;/2010-*-*/;/2011-*-*/;/2012-*-*/;/2013-*-*/
# option include /2008-*-*/;/2009-*-*/;/2010-*-*/;/2011-*-*/;/2012-*-*/;/2013-*-*/
# synchronize local|remote|both [ [ ] ]
# 传输方式:Local为远程至本地,remote为本地到远程,both双向传输
synchronize local
synchronize local
# Disconnect
close
close
# Exit WinSCP
exit
exit
0 0
- Winscp脚本同步文件
- 脚本调用winscp上传文件
- WinSCP(Windows与Linux文件同步工具)使用总结
- WinSCP自动执行脚本
- 同步文件脚本
- WinSCP文件共享
- WinSCP上传文件乱码
- winscp 显示隐藏文件
- 使用WinSCP共享文件
- 同步文件的shell脚本
- linux脚本同步修改文件
- Linux rsync同步文件脚本
- 通过winscp实现一键修改多台机器文件,并执行相应命令的脚本
- WinSCP上传文件Permission Denied
- WinSCP
- WINSCP
- WINSCP
- winscp
- linux文件 及 指令
- SharedPreferences(首选项)的使用
- 看完这二十个问题再结婚
- mybatis 中#与$的区别
- Domino SMTP Best Practices
- Winscp脚本同步文件
- hdu 5432Pyramid Split
- Leetcode: Meeting Rooms
- iBeacons
- Fragment基础复习
- Linux默认的include
- AngularJS中页面间传值
- javax.servlet.jsp.JspException cannot be resolved to a type
- 如何下载10米等高距的地表地形图