First steps in vb scripting for windows / DOS

Problem

Starting out with a new series of tips, getting started with vb scripting. Microsoft have an excellent guide on the site, which I’ve link at the bottom of this post.



Solution

Below is the typical ‘hello world’ script



Example


C:\Documents and Settings\Admin > copy con test.vbsWscript.echo "Hello World."^Z1 file(s) copied.C:\Documents and Settings\Admin > cscript test.vbsMicrosoft (R) Windows Script Host Version 5.6Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.Hello World.




Leave a Reply

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