Make Your Computer Greet You Tricks by Rajesh Kumar Sahanee - November 9, 2015November 9, 20150 Post Views: 5,369 Hello Friends, Today’s I going to share a Trick by which you can make your computer greet you according to time. (i.e if it is morning time it will greet you Good Morning, if it is afternoon it will greet you good afternoon and if it is evening time it will greet you good evening.) It is nothing but VBScript code. To apply this trick follow these steps:- Step 1: Open notepad or any text editor (ie notepad++) Step 2: Copy below code to text editor welcome.vbs Visual Basic Dim speaker, speech if Hour(now()) > 0 and (Hour(now())) < 12 then speech = "Good Morning Sir" elseif Hour(now()) >= 12 and Hour(now()) < 17 then speech = "Good Afternoon Sir" elseif Hour(now()) >= 17 and Hour(now()) <= 24 then speech = "Good Evening Sir" end if set speaker = CreateObject("sapi.spvoice") speaker.speak speech 1234567891011 Dim speaker, speechif Hour(now()) > 0 and (Hour(now())) < 12 then speech = "Good Morning Sir"elseif Hour(now()) >= 12 and Hour(now()) < 17 then speech = "Good Afternoon Sir"elseif Hour(now()) >= 17 and Hour(now()) <= 24 then speech = "Good Evening Sir"end if set speaker = CreateObject("sapi.spvoice")speaker.speak speech Step 3: Now save file with .vbs extension Step 4: Now to check it is working double click on saved file, you will hear a sound if it is working correctly Step 5: Open startup folder (to open startup folder type shell:startup in run utility and press enter) Step 6: Copy saved file created in 3rd step to startup folder Step 7: Now restart your computer and make yourself greeted from you computer Download Download Welcome.zip 1 file(s) 0.29 KB Download References http://www.w3schools.com/asp/vbscript_conditionals.asp http://superuser.com/questions/184580/access-to-the-windows-startup-directory-via-run Thanks Friends Please share if you like it