« cmd xcopy | Main | cmd Active Directory »

Jan 27, 2005

cmd ftp

★☆ ftpをスクリプトで実行する ★☆
c:\tmp\ftp.bat
------------------------------------
cd c:\
cd tmp

ftp -n -s:C:\tmp\ftp.dat ftp_saver_name

exit
------------------------------------

c:\tmp\ftp.dat
------------------------------------
user user_name passwrod

prompt //対話形式をoff

ascii //アスキー形式で転送
mput *.html /y
binary               //バイナリ-形式で転送
mput *.png /y

quit
------------------------------------

★☆ 定期的に行う ★☆
Windowsタスクマネージャーを使用するか、UNIX版移植版"cron"を使うと
c:\winnt\sys32\crontab
------------------------------------
# 8 * * * * C:\tmp\ftp.bat //毎時8分に実行
------------------------------------

--Windows移植版入手サイト
http://www.kalab.com/freeware/cron/cron.htm

|

« cmd xcopy | Main | cmd Active Directory »

コマンド」カテゴリの記事

Comments

Post a comment



(Not displayed with comment.)


Comments are moderated, and will not appear on this weblog until the author has approved them.



TrackBack


Listed below are links to weblogs that reference cmd ftp:

« cmd xcopy | Main | cmd Active Directory »