WinSCP菴ソ逕ィ譁ケ豕

WinSCP縺ィ縺ッ

winscp
Windows逕ィFTP繧ッ繝ゥ繧、繧「繝ウ繝医ヤ繝シ繝ォ
FTP謗・邯壼医ッ莉飽S縺ァ繧ょ庄

繧ウ繝槭Φ繝峨Λ繧、繝ウ螳溯。

WinSCP繧ウ繝槭Φ繝繧貞ョ溯。
> winscp.exe /command "open XXX.XXX.XXX.XXX" "get target.txt d:\"
繧ケ繧ッ繝ェ繝励ヨ繝輔ぃ繧、繝ォ縺ョ繧ウ繝槭Φ繝峨r螳溯。
> winscp.exe /script=C:\test.txt
窶サ繧ケ繧ッ繝ェ繝励ヨ繝輔ぃ繧、繝ォ縺ォ縺ッWinSCP繧ウ繝槭Φ繝縺瑚ィ倩ソー縺輔l縺ヲ縺繧句燕謠
繧ケ繧ッ繝ェ繝励ヨ繝輔ぃ繧、繝ォ縺ク繝代Λ繝。繝シ繧ソ縺ク貂。縺励※螳溯。
> winscp.exe /script=C:\test.txt /parameter prm1 prm1

WinSCP繧ウ繝槭Φ繝

繧オ繝シ繝舌↓謗・邯
open (繝ヲ繝シ繧カ蜷)@XXX.XXX.XXX.XXX
繧オ繝シ繝舌↓謗・邯(繝代せ繝ッ繝シ繝画欠螳)
open (繝ヲ繝シ繧カ蜷):(繝代せ繝ッ繝シ繝)@XXX.XXX.XXX.XXX
繧オ繝シ繝舌↓謗・邯(遘伜ッ骰オ繧剃スソ逕ィ)
open (繝ヲ繝シ繧カ蜷)@XXX.XXX.XXX.XXX -privatekey="C:\test.ppk"
繝輔ぃ繧、繝ォ繧竪ET
get target.txt d:\
窶サd:\縺ォ
繝輔ぃ繧、繝ォ繧単UT
put c:\target.txt
繝繧」繝ャ繧ッ繝医Μ繧貞、画峩
cd /test/test
蛻譁ュ
close

Follow me!

谺。縺ョ險倅コ

Windows繝舌ャ繝(MS-DOS)