How To Make Your Computer Greet You and Tell You The Time On Startup

How about making your computer greet you on start up like Jarvis From Ironman.I think it is cool.In this tutorial we will show you how to make your computer greet you and tell you the time on startup.With a Visual Basic Script and some changes in startup programs setting we can make our computer speak.So friends lets start:

Step 1:

• First of all copy and paste below Visual Basic Script to Notepad.
• Then save the file as “Greetme.vbs“.[Assign any name you want but don’t forget to add extension “.vbs”] • Now check the saved file is working or not by double clicking it.

Set Sapi = Wscript.CreateObject("SAPI.SpVoice")
 dim str
 if hour(time) < 12 then
 Sapi.speak "Good Morning TechLog"         ' Add Your Own Greetings Message.
 else
 if hour(time) > 12 then
 if hour(time) > 16 then
 Sapi.speak "Good evening TechLog"		   ' Add Your Own Greetings Message.
 else
 Sapi.speak "Good afternoon TechLog"	   ' Add Your Own Greetings Message.
 end if
 end if
 end if
 Sapi.speak "The current time is"           ' Add Your Own Time Greetings Message.
if hour(time) > 12 then
 Sapi.speak hour(time)-12
 else
 if hour(time) = 0 then
 Sapi.speak "12"
 else
 Sapi.speak hour(time)
 end if
 end if
if minute(time) < 10 then
 Sapi.speak "o"
 if minute(time) < 1 then
 Sapi.speak "clock"
 else
 Sapi.speak minute(time)
 end if
 else
 Sapi.speak minute(time)
 end if
if hour(time) > 12 then
 Sapi.speak "P.M."
 else
 if hour(time) = 0 then
 if minute(time) = 0 then
 Sapi.speak "Midnight"
 else
 Sapi.speak "A.M."
 end if
 else
 if hour(time) = 12 then
 if minute(time) = 0 then
 Sapi.speak "Noon"
 else
 Sapi.speak "P.M."
 end if
 else
 Sapi.speak "A.M."
 end if
 end if
 end if

Step 2:

After successfully completing above step,now we are going to add this Script to our Startup programs.

• So first Enable the option “Show Hidden files,folders and drives” in “Folder Options” setting.
• Then copy and paste script file to:

C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\StartMenu\Programs\Startup
make your computer greet you

We are done!
Now onwards your computer will greet you and tell you the current time on startup……. If you face any problem just comment below. Share this simple trick with your friends.

14 Comments
  1. Gennie says

    There is certainly a lot to find out about this issue.
    I really like all of the points you’ve made.

  2. Ahmedfaraz says

    Hi I’m facing a problem that when i rename it greetme.vbs then its still remain as Notepad .(windows 10)
    hope you will find the solution .
    thanks .

    1. TechLog360 says

      See the below screenshot.Choose “save as type ,All files”
      screenshot: http://goo.gl/YejmRL

  3. sagar says

    Comment: It shows error unterminated string constant 800A0409

    1. TechLog360 says

      Sagar please double check the code and file extension of saved notepad file

  4. AhmedFaraz says

    Hi Thanks for your reply but now its showing me another error below :

    Script: C:\Users\Ahmed Faraz\Desktop\Greetme.vbs
    Line: 57
    Char: 1
    Error: Expected Statement
    Code: 800A0400
    Source: Microsoft VBScript compilation error

    1. TechLog360 says

      Above code is correct…. use this file..
      https://userscloud.com/y9x6364fvla2

  5. AhmedFaraz says

    Thanks You So Much <3 <3 <3

  6. Brian says

    Can I choose a different voice ? and is it possible to speed up the speech when telling the time ?

    1. TechLog360 says

      No you can’t choose different voice and apply playback speed

  7. eyuel says

    Mine shows
    Line:1
    Char:12
    Error:expected end of statment
    Code:800A0401
    Source:Microsoft Unscripted compilation error

    1. TechLog360 says

      Download & Use this file :
      https://userscloud.com/y9x6364fvla2

  8. Rohit Singh says

    Not greeting on startup but telling the time

  9. Justin Kalikawe says

    Mine shows
    Line 1
    Char 46
    Error : unterminated string constant
    Code: 800A0409
    Source :Microsoft VB script compilation error

Leave A Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More