コマンドラインからの実行ログインと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" SynchronizeWinSCP.exe" "MyWeb/host01" /synchronize myweb-files /var/www ローカルのmyweb-filesディレクトリでリモートの/var/wwwディレクトリと同期する(ファイル転送の方向はローカル→リモート)。 参考 |
|