标签:
如题:
基本网上某个版本优化:
@Echo Off ::Ipconfig /all >i.txt ::findstr /r "10.*.*.*" i.txt>ip.txt set ftp.up=C:\Users\%username%\AppData\Local\ftp.up set file=C:\Users\%username%\AppData\Local\ip.txt Ipconfig /all |findstr /r "10.*.*.*">%file% ::ip地址段 echo.>>%file% echo ------------------>>%file% echo ip上传时间:>>%file% echo %date%>>%file% echo %time%>>%file% Echo open 10.10.1.1 >%ftp.up% ::服务器ip Echo 用户名>>%ftp.up% Echo 密码>>%ftp.up% ::Echo cd RemoteIp>>%ftp.up% Echo binary>>%ftp.up% Echo put %file%>>%ftp.up% Echo bye>>%ftp.up% FTP -s:%ftp.up% echo %ftp.up% ::pause ::加入任务计划,自动上传更新^
加红色背景的作相应修改!
标签:
原文地址:http://www.cnblogs.com/Hslim/p/4831791.html