Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 858 Bytes

WinSCP.md

File metadata and controls

52 lines (36 loc) · 858 Bytes

WinSCP

Execute script

@ECHO OFF
winscp.com /script=<script>.txt

Scripts

Connection

Open connection

option batch abort
option confirm off
open sftp://<user>@<server>:22/ -privatekey=<key>.ppk -hostkey="<fingerprint>"

Close connection

exit

Synchronize folders

Specific files

synchronize local -filemask="<cne1>.*;<cne2>.*;<cne3>.*" <local_folder> <remote_folder>

Without file types

synchronize remote -filemask="|Thumbs.db" <local_folder> <remote_folder>

Download specific file

get <file> <local_folder>\*