VBS Scripts

by slu6alka in Living > Pranks, Tricks, & Humor

48068 Views, 33 Favorites, 0 Comments

VBS Scripts

age 2.JPG
year 2.JPG
Hello again!

I decided to share with you more notepad tricks.....

The first one will show you how old you're going to be after 39 years.
And the second - in which year you're going to be 50.

I hope you like them:)

here are the results:)))

Trick Number 1

age 2.JPG
age 1.JPG
This trick will show you how old you'll be in 39 years.

1. Open notepad
2. Type this code:

WScript.Echo "Hello!"

Set WshShell = WScript.CreateObject("WScript.Shell")
age = InputBox("Please type your age.")

newage = age + 39
WshShell.Popup "In 39 years, you will be " & newage & "."

3. Go to File - save as and save it like this age ( or something else). vbs
It doesn't matter what will be the name, but it have to end with .vbs

4. That's it!!!

NOTE: You can change 39 with other number if you want. But don't forget to change it in both places!!!

Trick Number 2

year 2.JPG
year 1.JPG
This trick will show you in which year you'll be 50. You have to type only your birth year.

1. Open notepad
2. Type this code:

WScript.Echo "Hello!"

Set WshShell = WScript.CreateObject("WScript.Shell")
birthdate = InputBox("Please type your birth year only.")

newage = birthdate + 50
WshShell.Popup "In " & newage & " you'll be 50."

3. Go to File - save as and save it years. vbs
Like I said before it doesn't matter the name, but it must end with .vbs

The End

This codes will not harm your computer:)

Enjoy and good luck!!!