Friday, November 19, 2010

VBScript Code - Extracting part of the string from complete string

Write the below code in a notepad and save it as a .vbs file. Either run it from command prompt or run it by double-clicking on it.

VBScript Code - Extracting part of the string from complete string

x="Hello World!"
Msgbox Mid(x,1,5)