Record / Memo
WinSCP スクリプトでタスクの自動処理
WinSCP を bat で操作する。次のファイルを用意し、winscp_console.bat を起動し winscp_console_command.txt を動かす。 # winscp_console.bat “C
WinSCP を bat で操作する。次のファイルを用意し、winscp_console.bat を起動し winscp_console_command.txt を動かす。
# winscp_console.bat
“C:\Program Files\WinSCP\winscp.exe” /console /script=”winscp_console_command.txt”# winscp_console_command.txt
option batch on
open sample-user@sample-host.domain.jp
call tools/status_web.sh
exitWindows terminal winscp
http://winscp.net/eng/docs/lang:jp
コマンドリファレンス
http://sourceforge.jp/projects/winscp/wiki/script_commands#syntax
コマンドラインオプションの活用とバッチファイル連携
http://sourceforge.jp/magazine/10/04/20/1033216/4
コマンドラインオプション
http://sourceforge.jp/projects/winscp/wiki/commandline
【注意】Windows タスクに登録するときは以下のように、フルパスでないとだめ
“C:\Users\sample-user\Documents\winscp_console_svn_st_u_command.txt”
WinSCPスクリプト入門:コマンドやバッチファイルとの連携による自動処理 4ページ
http://sourceforge.jp/magazine/10/04/20/1033216/4
バッチファイルを実行する時に黒いコマンドプロンプト画面を表示しない方法
http://junbr.raindrop.jp/am/entry141.html