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.

[/problem]

[solution]

Below is the typical ‘hello world’ script

[/solution]

[example]

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

[/example]

[reference]

Microsoft technet tips on beginning vb scripting

[/reference]

If you have found my website useful, please consider buying me a coffee below 😉

Leave a Reply

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