超級厲害的VBS定時提醒腳本 Remind.vbs
更新時間:2008年06月20日 19:48:06 作者:
這個是我見過的最有特色的腳本提醒程序了,時間|提示語,具體使用方法可以參考例子
'/*=========================================================================
' * Intro 定時提醒,格式:時間|提示語,具體使用方法可以參考例子
' * FileName Remind.vbs
' * Author yongfa365
' * Version v1.0
' * WEB http://www.yongfa365.com
' * Email yongfa365[at]qq.com
' * FirstWrite http://www.yongfa365.com/Item/Remind.vbs.html
' * MadeTime 2008-06-18 19:26:32
' * LastModify 2008-06-18 19:26:32
' *==========================================================================*/
tx = True
used = ""
t = ""
'■■■■■■■■■■■■■■可修改區(qū)域開始■■■■■■■■■■■■■■
t = t & "|" & "10:00:00|hello,hi,是美女不!"
t = t & "|" & "11:30:00|美女,快吃飯了!"
t = t & "|" & "14:00:00|困不困?困了就休息會,注意關(guān)門,小心被偷窺哦,哇嘎嘎"
t = t & "|" & "16:30:00|想帥哥了吧,笑一笑^-^"
t = t & "|" & "17:30:00|好像要下班了哦。"
t = t & "|" & "18:00:00|帥哥還沒回家?快提醒下"
t = t & "|" & "22:30:00|哥哥,備份當(dāng)前數(shù)據(jù),時間要到了。"
'■■■■■■■■■■■■■■可修改區(qū)域結(jié)束■■■■■■■■■■■■■■
t = Right(t, Len(t) -1)
Do While tx
WScript.Sleep 10000'10秒種檢測一次
tixing()
Loop
Function tixing()
t2 = Split(t, "|")
For i = LBound(t2) To UBound(t2) step 2
txsj = CDate(Date & " " & t2(i))
If DateAdd("n", -1, Now) <= txsj And DateAdd("n", 1, Now) >= txsj And InStr(used, t2(i)) = 0 Then
'時間相差一分鐘且沒提醒過的的話提醒
MsgBox t2(i + 1)
used = used & t2(i)'提醒過的記錄一下
End If
Next
End Function
' * Intro 定時提醒,格式:時間|提示語,具體使用方法可以參考例子
' * FileName Remind.vbs
' * Author yongfa365
' * Version v1.0
' * WEB http://www.yongfa365.com
' * Email yongfa365[at]qq.com
' * FirstWrite http://www.yongfa365.com/Item/Remind.vbs.html
' * MadeTime 2008-06-18 19:26:32
' * LastModify 2008-06-18 19:26:32
' *==========================================================================*/
tx = True
used = ""
t = ""
'■■■■■■■■■■■■■■可修改區(qū)域開始■■■■■■■■■■■■■■
t = t & "|" & "10:00:00|hello,hi,是美女不!"
t = t & "|" & "11:30:00|美女,快吃飯了!"
t = t & "|" & "14:00:00|困不困?困了就休息會,注意關(guān)門,小心被偷窺哦,哇嘎嘎"
t = t & "|" & "16:30:00|想帥哥了吧,笑一笑^-^"
t = t & "|" & "17:30:00|好像要下班了哦。"
t = t & "|" & "18:00:00|帥哥還沒回家?快提醒下"
t = t & "|" & "22:30:00|哥哥,備份當(dāng)前數(shù)據(jù),時間要到了。"
'■■■■■■■■■■■■■■可修改區(qū)域結(jié)束■■■■■■■■■■■■■■
t = Right(t, Len(t) -1)
Do While tx
WScript.Sleep 10000'10秒種檢測一次
tixing()
Loop
Function tixing()
t2 = Split(t, "|")
For i = LBound(t2) To UBound(t2) step 2
txsj = CDate(Date & " " & t2(i))
If DateAdd("n", -1, Now) <= txsj And DateAdd("n", 1, Now) >= txsj And InStr(used, t2(i)) = 0 Then
'時間相差一分鐘且沒提醒過的的話提醒
MsgBox t2(i + 1)
used = used & t2(i)'提醒過的記錄一下
End If
Next
End Function
相關(guān)文章
VBS教程:方法-GetAbsolutePathName 方法
VBS教程:方法-GetAbsolutePathName 方法...2006-11-11遠(yuǎn)程開啟/關(guān)閉目標(biāo)telnet服務(wù)的windows腳本RTCS.vbs
遠(yuǎn)程開啟/關(guān)閉目標(biāo)telnet服務(wù)的windows腳本RTCS.vbs...2007-02-02vbs實現(xiàn)myipneighbors 域名查詢結(jié)果整理
把myipneighbors查詢的結(jié)果COPY下來,然后保存后,拖到此腳本上,進(jìn)行整理因為myipneighbors有驗證碼,能力有限,沒辦法突破..只能先這樣了.2009-07-07reg2vbs.vbs 將Reg文件轉(zhuǎn)換為VBS文件保存 腳本之家修正版本
可以將Reg文件轉(zhuǎn)換為VBS文件保存的代碼,網(wǎng)上的好多都有問題,本地特給修正了一下,有問題,請回復(fù)。2009-05-05自動寫入文件上傳到指定服務(wù)器SoftwareMeteringCLS.vbs源碼
本次文章其中所用腳本代碼為ghiconan版主提供的由Branimir petrovic編寫的代碼,我在后面根據(jù)我公司現(xiàn)有的網(wǎng)絡(luò)情況做了一些文件管理的添加與刪除,最后有用FTP批處理的方法上傳到服務(wù)器內(nèi)!2008-12-12