Saturday, 7 January 2017

VBScripts Fundamentals - Part1


Using concatenate, "&_" and "vbcrlf" in VB Script

Watch Video
 
Prerequisite:
http://automation-home.blogspot.in/2017/01/vb-script-basic-example.html
 
Using concatenate, "&_" and "vbcrlf" in VB Script
- Concatenate using plus sign(+) and ampersand (&).

- String in multiple lines using "&_" and ''+_''.
   ex: Sql query as string

- To print in different lines use "vbcrlf" (it is like '\n').
    ex: "Hello welcome" --> "Hello" &vbcrlf& "welcome"
    References: http://powerasp.net/content/new/vbscript-constants.asp 
                        http://www.asciitable.com/

Thursday, 5 January 2017

VB Script Basic Example

Watch Video


Writing the VB Script in
- Notepad
- Notepad++
      https://notepad-plus-plus.org/download/v7.3.html
- VbsEdit
      http://www.vbsedit.com/

Saving the file
Save the file  as <<File Name>>.vbs

Execution the VB Script.
- Command Prompt
- Editor
- Double click on VB Script file