1. Buka Notepad
2. copy code vbscript berikut ke notepad :
- Code:
-
Dim speaks, speech, salam , username
username = CreateObject("WScript.Network").Username
If Hour(Time) < 12 Then
salam = "Good morning"
ElseIf Hour(Time) < 20 Then
salam = "Good afternoon"
Else
salam = "Good night"
End If
speaks = salam + " " + Username + "! Welcome back to your computer! Have a nice work!"
Set speech = CreateObject("sapi.spvoice")
speech.Speak speaks
3. save file berikut jadi "welcome.vbs"
4. copy file tersebut ke :
Windows Vista & 7 -> "C:\Users\{username}\AppData\Roaming\Microsoft\Win dows\Start Menu\Programs\Startup"
Windows XP -> C:\Documents and Settings\{username}\Start Menu\ atau C:\Documents and Settings\All Users\Start Menu\Programs\Startup