还有有位朋友给出的- @echo off
- :: 邮箱自动登录批处理.
- :: http://www.cn-dos.net/
- :: 使用方法.1,直接在批处理里面输入用户名和密码.
- :: 2.使用命令行方加参数启动.第一个参数为用户名和邮箱名,第二个参数为密码
- :: 例子: mail.cmd "chenall@163" "chenall123456"
- :: 用户名是chenall密码是chenall123456登录到163邮箱
- ::用户名后面需要加邮箱名。如chenall@126(登录126邮箱) 或chenall@163(登录163邮箱)
- set "user=
- if not defined user set user=%1
- :设置密码
- set "pass=
- if not defined pass set pass=%2
- ::过滤用户名密码中的引号
- set user=%user:"=%&set pass=%pass:"=%
- setlocal enabledelayedexpansion
- ::修改密码中出现的#和&,否则会登录不了
- set "pass=!pass:#=%%23!"
- set "pass=!pass:&=%%26!"
- endlocal&set "pass=%pass%"
- for /f "tokens=1,2 delims=@" %%i in ("%user%") do set "user=%%i"&&goto :%%j
- :yeah
- start "yeah邮箱自动登录" "http://entry.yeah.net/cgi/login?&bCookie=&user=%user%&pass=%pass%"
- goto :eof
- :126
- start "126邮箱自动登录" "https://entry.mail.126.com/cgi/login?&bCookie=&user=%user%&pass=%pass%"
- goto :eof
- :163
- start "163邮箱自动登录" "https://reg.163.com/logins.jsp?username=%user%&password=%pass%&url=http://fm163.163.com/coremail/fcg/ntesdoor2"
- goto :eof
- :yahoo
- start "yahoo邮箱自动登录" "https://edit.bjs.yahoo.com/config/login?.done="http://cn.mail.yahoo.com/inset.html"&login=%user%@yahoo.com.cn&passwd=%pass%"
- goto :eof
复制代码 这个为什么保存为批处理后貌似126邮箱没效了,请教下现在怎么找126吧?? |