用ftp自动更新代码

创建一个文件autoftp.ftp,内容如下:
open 126.12.012.21
user username
password
cd /home/
binary
Prompt
mput xxxxx.jar
bye
quit
exit


创建bat文件,内容如下
jar cvf xxxxx.jar -C classes com
jar uvf xxxxx.jar -C classes template

ftp -n -s:".\autoftp.ftp"

pause

广东 雨花新村5幢202 飞

猜你喜欢

转载自tywo45.iteye.com/blog/1138383