2015年4月29日 星期三

寫一支程式,可以從個人電腦使用notes client寄信

寫一支程式,可以從個人電腦使用notes client寄信

1.用notepad++寫程式

VBScript如下:
begin----------------------------------------------------------------------------------------------------

'VBScript 由Client PC使用notes client寄信
'執行時Notes Client必須開啟

Const EMBED_ATTACHMENT = 1454
Set nSession = CreateObject("Notes.NotesSession")
'Gets the current user’s mail database
Set db = nSession.GetDataBase("","")
If Not db.IsOpen = True Then
db.OpenMail
End If
Set doc = db.CreateDocument
doc.Form = "Memo"
doc.Sendto = "kitty@msn.com"
doc.Subject = "寄信測試"
doc.Body = "每天10:00系統會自動寄信,請於10:30檢查是否收到信並記錄收到信的時間,若超過30分鐘沒有收到信,表示異常,必須通知郵件管理員檢查。"

'Set up the embedded object and attachment and attach it

sAttachment = "d:\temp\aaaa.txt"

Set AttachME = doc.CreateRichTextItem("Attachment")

Set EmbedObj = AttachME.EmbedObject _
(EMBED_ATTACHMENT, "", sAttachment, "Attachment")

doc.Send(False)


end------------------------------------------------------------------------------------------------------

2.存檔到d:\temp\sendmail.vbs

3.開啟工作排程器,設定每天10:00執行此script寄信

4.注意事項
執行時Notes Client要先開啟。

2012年1月9日 星期一

學習程式設計的網站

學習程式設計的網站 Codecademy is the easiest way to learn how to code. It's interactive, fun, and you can do it with your friends. 網址:http://www.codecademy.com 開啟此網站必須使用Chrome、Firefox或Opera,若使用IE,網站會要求您安裝 Google Chrome Frame

2010年1月21日 星期四

FreeBasic學習筆記

1.下載freebasic
http://www.freebasic.net/

參考資料
http://kyovbdx.myweb.hinet.net/

2009年9月29日 星期二

OpenSky is a free service provided by Gizmo5

OpenSky is a free service provided by Gizmo5 which allows any mobile phone, web browser or IP aware phone network (SIP, asterisk, etc) to communicate with Skype users. OpenSky supports sending text messages and voice calls.

ubuntu 安裝完kubernetes後做apt-get update會出現錯誤

root@k8s02:~# sudo apt-get update 已有:1 http://tw.archive.ubuntu.com/ubuntu xenial InRelease 已有:2 http://tw.archive.ubuntu.com/ubuntu xenia...