Chinaunix首页 | 论坛 | 博客
  • 博客访问: 339537
  • 博文数量: 85
  • 博客积分: 1420
  • 博客等级: 上尉
  • 技术积分: 787
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-10 09:02
文章分类

全部博文(85)

文章存档

2011年(5)

2010年(51)

2009年(29)

我的朋友

分类: LINUX

2010-08-12 13:46:40

# winscp.exe /console /script=sample.txt
# 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 confirm  on|off
option confirm off
# option transfer  binary|ascii|automatic
# 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
# Change remote directory
# cd /home/user              #远程工作目录
cd REMOTE PATH
# Change local directory
# set to Self's working dir 
lcd LOCAL PATH                   #本地工作目录
# Force binary mode transfer
option transfer binary
# Download file to the local directory d:\
# get examplefile.txt d:\
# option synchdelete  on|off
option synchdelete off       #是否同步删除  
# option include clear | [;...]
# option include /2008-*-*/;/2009-*-*/;/2010-*-*/;/2011-*-*/;/2012-*-*/;/2013-*-*/
# synchronize local|remote|both [ [ ] ] 
# 传输方式:Local为远程至本地,remote为本地到远程,both双向传输
synchronize local  
# Disconnect
close
# Exit WinSCP
exit
阅读(8459) | 评论(0) | 转发(0) |
0

上一篇:oracle 用户管理

下一篇:SWAP

给主人留下些什么吧!~~