WSH script : Introduction

WSH (Windows Script Host) is a scripting language that enable us to do automation for  Microsoft Windows operating systems.

To start WSH doing scripting is really simple.

Open a notepad and wrote the script inside the notepad.

For example


WScript.Echo "Welcome to WSH scripting"
WScript.Quit

Rename the file to .vbs. For example Hello_world.vbs
To run the script, just double click on the .vbs file.
The result should show a pop up like this








In case you need to do editing for your script, right click
on the .vbs file and select edit. It should open the file
using notepad.

No comments:

Post a Comment