コマンドラインからの実行

ログインとlsコマンド実行

 WinSCP.com /command "open mysess1" "ls tmp" "exit"

ダウンロード

CUIのWinSCP.comで実行

 WinSCP.com  /command "open MyWeb/host01" "lcd %USERPROFILE%\tmp" "get /var/www/test.html" "exit"

上のコマンドをGUIのWinSCP.exeを起動して実行するには

 WinSCP.exe" sftp://"MyWeb/host01"/var/www/test.html

アップロード

 WinSCP.com /command "open mysess1" "lcd %USERPROFILE%\tmp" " cd tmp" "put *.txt" "exit"

ログを取る

 WinSCP.exe /log="%USERPROFILE\winscp.log.txt"

Synchronize

 WinSCP.exe" "MyWeb/host01" /synchronize myweb-files /var/www

ローカルのmyweb-filesディレクトリでリモートの/var/wwwディレクトリと同期する(ファイル転送の方向はローカル→リモート)。

参考


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2015-08-18 (火) 04:59:16