Scripts are segments of code that are interpreted used to control programs (like web browsers, and OS features).  A scripting language is a “lightweight” programming language that can be embedded into a program or use an operating system host compiler to execute them.  A full programming language needs to be compiled into a stand alone program which can be executed by itself.  Sometimes people use scripts can be used to automate tasks (like uploading files or creating RuneScape fishing bot).

Types of Scripts
There are many types of scripts and scripting languages:

  • .html (to control web browsers)
  • .vbs (controls IE and other programs in windows environment)
  • .js (JavaScript – also in web browsers **not the same as JScript**)
  • Python
  • PHP
  • PERL

Running Scripts
For the scripts we will be looking at, they can be run just by double clicking the script file.  Generally script files are created in a program like notepad or text edit and then saved by changing the extension.  For example changing the extention to .vbs or .html.

We are going to look at three different scripting languages:

VBScript is a light version of the Visual Basic programming language.  It can be used on Windows OS computers.  VBScript is not case sensitive.  VBScript files have a .vbs extension.

Example: msgbox “Hello World”

Note: Comments in VBScript are made using a single quotation ‘ at the start of the comment line.

Example: ‘ Created by me on this day for you

JavaScript files have a .js extension.

HTML files have an .html extension.



Leave A Reply

Your email address will not be published. Required fields are marked *