首页 » ASP代码, VBS脚本 » 服务器开机自动发短信到手机

服务器开机自动发短信到手机

保存为批处理,运行即可.第一二两行为自动加到开机运行中,我注释了,经测试无效,仅作参考,请不要使用

@echo off
:: if not exist c:\windows\feixin.bat copy "%~0" c:\windows\feixin.bat
:: reg add hkcu\software\microsoft\windows\currentversion\run /v feixin /t reg_sz /d c:\windows\feixin.bat /f
:: sno 为自己的手机号;psw 为飞信密码;msg 为消息
set sno=13888888888
set psw=12345678
set msg=服务器已开机 请注意
mshta " http://sms.api.bz/fetion.php?username=%sno%&password=%psw%&sendto=%sno%&message=%msg% "

转发到新浪微博 转发到新浪微博

目前这篇文章有2条评论(Rss)

  1. nike free | #1
    05/16/2012 at 17:06

    Aw, this is quite a excellent article. In idea I’d like to put in writing this way in addition – taking time as well as true efforts to generate a very good article… but what can I say… I procrastinate much and for no reason seem to get something executed.

  2. Jak dobrze wygladac | #2
    05/17/2012 at 08:20

    Usually I do not read article on blogs, but I would like to say that this write-up very forced me to try and do so! Your writing style has been amazed me. Thanks, quite nice article.

我要评论