0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Windows】winSCPをコマンドラインで使う

Last updated at Posted at 2020-07-17

ってできたんや、、、

コマンドプロンプトからexeを実行する際に、引数に"/console"を付けるとコンソールモードで開けます。

"C:\Program Files\WinSCP.exe" sftp://ユーザ:ユーザパス@ホスト /console

powershellの場合は、

& "C:\Program Files\WinSCP.exe" sftp://ユーザ:ユーザパス@ホスト /console

ちなみに引数に /script="C:\script\xxxxxx.src"
みたいに/script=ファイルパスも入れてやるとsrcファイル中のコマンド打ってくれます。

コマンドは結構いろいろ使える↓
https://ja.osdn.net/projects/winscp/wiki/script_commands

スクリプトでスケジューラ登録しておけば、定期的に自動でwindowsからLinuxへファイル転送~とかできますね。

いじょう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?