- @echo off
- rem 指定FTP用户名
- set ftpUser=FTPUSERNAME
- rem 指定FTP原密码
- set ftpPassOld=FTPPASSWORDOLD
- rem 指定FTP新密码
- set ftpPassNew=FTPPASSWORDNEW
- rem 指定FTP服务器地址
- set ftpIP=192.168.0.2
-
- set FtpFile=%temp%\TempFTP.txt
- >"%FtpFile%" echo,%ftpUser%
- >>"%FtpFile%" echo,%ftpPassOld%
- >>"%FtpFile%" echo quote site pswd %ftpPassOld% %ftpPassNew%
- >>"%FtpFile%" echo bye
- start ftp -i -s:"%FtpFile%" %ftpIP%
复制代码 首发:http://blog.csdn.net/ljc007/archive/2010/04/17/5497100.aspx |